From 42ba4e23a5bc6dea8bf22791cc29d51c4ac09877 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Wed, 3 Jun 2009 07:14:24 +0000 Subject: Fix new pages not always rendering when using faster_scroll svn path=/trunk/netsurf/; revision=7692 --- amiga/gui.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/amiga/gui.c b/amiga/gui.c index f9a213d86..55e645529 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2439,7 +2439,7 @@ void gui_window_set_scroll(struct gui_window *g, int sx, int sy) g->shared->redraw_required = true; - if(option_faster_scroll) + if(option_faster_scroll && !g->shared->new_content) g->shared->redraw_scroll = true; g->scrollx = sx; @@ -2447,6 +2447,7 @@ void gui_window_set_scroll(struct gui_window *g, int sx, int sy) // history_set_current_scroll(g->shared->bw->history,g->scrollx,g->scrolly); } + g->shared->new_content = false; } void gui_window_scroll_visible(struct gui_window *g, int x0, int y0, @@ -2833,6 +2834,7 @@ void gui_window_new_content(struct gui_window *g) else return; ami_clearclipreg(currp); + g->shared->new_content = true; if(g->shared->bw->browser_window_type != BROWSER_WINDOW_NORMAL) return; -- cgit v1.2.3