summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2011-10-22 13:52:13 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2011-10-22 13:52:13 +0000
commita4f14eb0e9b901cc645f3fb81bed0148e3d38856 (patch)
tree01cbb06e56cdc8e66a0732cb833841601614bb82 /amiga/gui.c
parentc970cc6dd407412687fda612fa3690a22643f1ec (diff)
downloadnetsurf-a4f14eb0e9b901cc645f3fb81bed0148e3d38856.tar.gz
netsurf-a4f14eb0e9b901cc645f3fb81bed0148e3d38856.tar.bz2
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
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-xamiga/gui.c6
1 files changed, 2 insertions, 4 deletions
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<oldv)
{