diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-03-12 23:48:53 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-03-12 23:48:53 +0000 |
commit | a487f7e611550b0058a780cf673480eb8de6f799 (patch) | |
tree | d3fc64714632a6cb8049eab059a1ea5332efb97f /windows/drawable.c | |
parent | 8b00dfcfbf9003692e6c4f905500c55aac79b7f0 (diff) | |
download | netsurf-a487f7e611550b0058a780cf673480eb8de6f799.tar.gz netsurf-a487f7e611550b0058a780cf673480eb8de6f799.tar.bz2 |
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.
Diffstat (limited to 'windows/drawable.c')
-rw-r--r-- | windows/drawable.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); } |