diff options
author | Adrian Lees <adrian@aemulor.com> | 2007-06-24 17:10:08 +0000 |
---|---|---|
committer | Adrian Lees <adrian@aemulor.com> | 2007-06-24 17:10:08 +0000 |
commit | 9e2baee37da457c34da61fab3d9a93ce98da5654 (patch) | |
tree | 828869f681b369a2cd3dd544788bdde5cd68515f /riscos | |
parent | dabd37b0b2e010bc77d8829039dc94b66dfce3f2 (diff) | |
download | netsurf-9e2baee37da457c34da61fab3d9a93ce98da5654.tar.gz netsurf-9e2baee37da457c34da61fab3d9a93ce98da5654.tar.bz2 |
Scroll wheel support on hotlist and history windows
svn path=/trunk/netsurf/; revision=3364
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/window.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/riscos/window.c b/riscos/window.c index b2279b52f..2d9e8da58 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -2644,12 +2644,9 @@ void ro_gui_scroll_request(wimp_scroll *scroll) int x, y; struct gui_window *g = ro_gui_window_lookup(scroll->w); - if (!g) - return; - x = scroll->visible.x1 - scroll->visible.x0 - 32; y = scroll->visible.y1 - scroll->visible.y0 - 32; - if (g->toolbar) + if (g && g->toolbar) y -= ro_gui_theme_toolbar_full_height(g->toolbar); switch (scroll->xmin) { |