summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2011-12-24 12:49:55 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2011-12-24 12:49:55 +0000
commit135a11db35be06763e4b889984b421dcbddca3ee (patch)
treeaaa111a15d272474a1d4895a7f74d689b4b11893 /amiga
parent075c18b27df794a08c6b688ab49697d460df3b9e (diff)
downloadnetsurf-135a11db35be06763e4b889984b421dcbddca3ee.tar.gz
netsurf-135a11db35be06763e4b889984b421dcbddca3ee.tar.bz2
Fix scrollbar scroll
svn path=/trunk/netsurf/; revision=13341
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/gui.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 8feb8c50f..a0f99c2a1 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -3306,6 +3306,9 @@ void ami_do_redraw(struct gui_window_2 *g)
ami_get_hscroll_pos(g, (ULONG *)&hcurrent);
ami_get_vscroll_pos(g, (ULONG *)&vcurrent);
+ g->bw->window->scrollx = hcurrent;
+ g->bw->window->scrolly = vcurrent;
+
c = g->bw->current_content;
width=bbox->Width;
@@ -3864,6 +3867,10 @@ void ami_scroller_hook(struct Hook *hook,Object *object,struct IntuiMessage *msg
case GID_HSCROLL:
case OID_HSCROLL:
case OID_VSCROLL:
+ gui_window_get_scroll(gwin->bw->window,
+ &gwin->bw->window->scrollx,
+ &gwin->bw->window->scrolly);
+
if(option_faster_scroll == true) gwin->redraw_scroll = true;
else gwin->redraw_scroll = false;