From a487f7e611550b0058a780cf673480eb8de6f799 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 12 Mar 2015 23:48:53 +0000 Subject: Move win32 window operations into their own module This splits up a great deal of the win32 window code out from other gui code. It also remove large quantities of unused and junk variables and functions. --- windows/drawable.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'windows/drawable.c') diff --git a/windows/drawable.c b/windows/drawable.c index acbcdf1f0..7726d6a56 100644 --- a/windows/drawable.c +++ b/windows/drawable.c @@ -38,8 +38,6 @@ static const char windowclassname_drawable[] = "nswsdrawablewindow"; -void gui_window_set_scroll(struct gui_window *w, int sx, int sy); - /** * Handle wheel scroll messages. */ @@ -132,7 +130,7 @@ nsws_drawable_vscroll(struct gui_window *gw, HWND hwnd, WPARAM wparam) SetScrollInfo(hwnd, SB_VERT, &si, TRUE); GetScrollInfo(hwnd, SB_VERT, &si); if (si.nPos != mem) { - gui_window_set_scroll(gw, gw->scrollx, gw->scrolly + + win32_window_set_scroll(gw, gw->scrollx, gw->scrolly + gw->requestscrolly + si.nPos - mem); } @@ -196,7 +194,7 @@ nsws_drawable_hscroll(struct gui_window *gw, HWND hwnd, WPARAM wparam) SetScrollInfo(hwnd, SB_HORZ, &si, TRUE); GetScrollInfo(hwnd, SB_HORZ, &si); if (si.nPos != mem) { - gui_window_set_scroll(gw, + win32_window_set_scroll(gw, gw->scrollx + gw->requestscrollx + si.nPos - mem, gw->scrolly); } -- cgit v1.2.3