From b704ad3e88a1c16f93ccbb23fb5eb60b4f7d3360 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 3 Feb 2013 19:30:11 +0000 Subject: Correct fast scroll co-ordinates --- amiga/gui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'amiga/gui.c') 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(vcurrentbw->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(hcurrentbw->window, gwin->bw, true, x0, y0, x1, y1); } } -- cgit v1.2.3