From a4f14eb0e9b901cc645f3fb81bed0148e3d38856 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 22 Oct 2011 13:52:13 +0000 Subject: Avoid horizontal pixel-height lines of the background appearing when "fast scrolling" down the page. There is a similar problem with scrolling up pages which may be a bug in ami_do_redraw_limits or plotters (probably bitmap tile plotter), as drawing additional pixel lines after scrolling is not redrawing the affected area. Example sites where this problem is apparent: http://www.nintendolife.com (border pattern does not redraw) http://www.amigaos.net/content/72/supported-hardware (clouds show through the main text area) svn path=/trunk/netsurf/; revision=13072 --- amiga/gui.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'amiga/gui.c') diff --git a/amiga/gui.c b/amiga/gui.c index 225c19394..1ebb1d781 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -3229,8 +3229,6 @@ void gui_window_redraw_window(struct gui_window *g) void gui_window_update_box(struct gui_window *g, const struct rect *rect) { - ULONG sx,sy; - if(!g) return; ami_do_redraw_limits(g, g->shared->bw, @@ -3292,9 +3290,9 @@ void ami_do_redraw(struct gui_window_2 *g) if(vcurrent>oldv) { ami_do_redraw_limits(g->bw->window, g->bw, - hcurrent, (height / g->bw->scale) + oldv, + hcurrent, (height / g->bw->scale) + oldv - 1, hcurrent + (width / g->bw->scale), - vcurrent + (height / g->bw->scale)); + vcurrent + (height / g->bw->scale) + 1); } else if(vcurrent