diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-01-12 14:06:48 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-01-12 14:06:48 +0000 |
commit | 453301f96153a72f71884916967503d29a55aaa6 (patch) | |
tree | 62cca49a1d8eb13a4d9118013f3b3850d35aeb09 /amiga | |
parent | 261528747c5423445398b5ee5ab6bc9c26b0d93b (diff) | |
download | netsurf-453301f96153a72f71884916967503d29a55aaa6.tar.gz netsurf-453301f96153a72f71884916967503d29a55aaa6.tar.bz2 |
Fix fast scroll up
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/gui.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 43412704a..a33724f9b 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -3630,24 +3630,22 @@ void ami_do_redraw_tiled(struct gui_window_2 *gwin, if(width <= 0) return; if(height <= 0) return; -// printf("%ld %ld %ld %ld\n",left, top, width, height); - ami_set_pointer(gwin, GUI_POINTER_WAIT, false); for(y = top; y < (top + height); y += tile_y_scale) { clip.y0 = 0; clip.y1 = nsoption_int(redraw_tile_size_y); + if(clip.y1 > height) clip.y1 = height; if((((y - sy) * gwin->bw->scale) + clip.y1) > bbox->Height) clip.y1 = bbox->Height - ((y - sy) * gwin->bw->scale); for(x = left; x < (left + width); x += tile_x_scale) { clip.x0 = 0; clip.x1 = nsoption_int(redraw_tile_size_x); + if(clip.x1 > width) clip.x1 = width; if((((x - sx) * gwin->bw->scale) + clip.x1) > bbox->Width) clip.x1 = bbox->Width - ((x - sx) * gwin->bw->scale); -//printf("%ld %ld -> %ld %ld\n",clip.x0 - (int)(x), clip.y0 - (int)(y), clip.x1, clip.y1); - if(browser_window_redraw(gwin->bw, clip.x0 - (int)x, clip.y0 - (int)y, |