diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-01-13 00:09:50 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-01-13 00:09:50 +0000 |
commit | 6938efc2a051ea5b8fc97b94898d417b7ea2dcba (patch) | |
tree | fdd7688a7caa50a87ba76132731a06f34c7009de /amiga/gui.c | |
parent | c7a37392e49deb5007dc3679e0aa7e65b4ff0c8b (diff) | |
parent | a6b08c674f3d2fdd91fa6419076e756b07c6630c (diff) | |
download | netsurf-6938efc2a051ea5b8fc97b94898d417b7ea2dcba.tar.gz netsurf-6938efc2a051ea5b8fc97b94898d417b7ea2dcba.tar.bz2 |
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
Diffstat (limited to 'amiga/gui.c')
-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, |