summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2013-02-03 19:30:11 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2013-02-03 19:30:11 +0000
commitb704ad3e88a1c16f93ccbb23fb5eb60b4f7d3360 (patch)
tree258764f9b37c7d90c04479358325e10c9d1e788a
parent4c27d6dd8e05a6144299b6460020a0089e1360c0 (diff)
downloadnetsurf-b704ad3e88a1c16f93ccbb23fb5eb60b4f7d3360.tar.gz
netsurf-b704ad3e88a1c16f93ccbb23fb5eb60b4f7d3360.tar.bz2
Correct fast scroll co-ordinates
-rwxr-xr-xamiga/gui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index d26db2b88..343952cef 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -3875,26 +3875,26 @@ void ami_do_redraw(struct gui_window_2 *gwin)
if(vcurrent>oldv) /* Going down */
{
ami_spacebox_to_ns_coords(gwin, &x0, &y0, 0, height - (vcurrent - oldv));
- ami_spacebox_to_ns_coords(gwin, &x1, &y1, width, height);
+ ami_spacebox_to_ns_coords(gwin, &x1, &y1, width + 1, height + 1);
ami_do_redraw_limits(gwin->bw->window, gwin->bw, true, x0, y0, x1, y1);
}
else if(vcurrent<oldv) /* Going up */
{
ami_spacebox_to_ns_coords(gwin, &x0, &y0, 0, 0);
- ami_spacebox_to_ns_coords(gwin, &x1, &y1, width, oldv - vcurrent);
+ ami_spacebox_to_ns_coords(gwin, &x1, &y1, width + 1, oldv - vcurrent + 1);
ami_do_redraw_limits(gwin->bw->window, gwin->bw, true, x0, y0, x1, y1);
}
if(hcurrent>oldh) /* Going right */
{
ami_spacebox_to_ns_coords(gwin, &x0, &y0, width - (hcurrent - oldh), 0);
- ami_spacebox_to_ns_coords(gwin, &x1, &y1, width, height);
+ ami_spacebox_to_ns_coords(gwin, &x1, &y1, width + 1, height + 1);
ami_do_redraw_limits(gwin->bw->window, gwin->bw, true, x0, y0, x1, y1);
}
else if(hcurrent<oldh) /* Going left */
{
ami_spacebox_to_ns_coords(gwin, &x0, &y0, 0, 0);
- ami_spacebox_to_ns_coords(gwin, &x1, &y1, oldh - hcurrent, height);
+ ami_spacebox_to_ns_coords(gwin, &x1, &y1, oldh - hcurrent + 1, height + 1);
ami_do_redraw_limits(gwin->bw->window, gwin->bw, true, x0, y0, x1, y1);
}
}