diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-02-29 19:09:55 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-02-29 19:09:55 +0000 |
commit | 3e77ceeb81deb21494b8f87ef166fcf978837c7e (patch) | |
tree | 871043dd35bde59821223e4207eb04e9e800d8d0 /amiga/gui.c | |
parent | 6ab79f9868982ed0bc2fa571832e85b51e259c46 (diff) | |
download | netsurf-3e77ceeb81deb21494b8f87ef166fcf978837c7e.tar.gz netsurf-3e77ceeb81deb21494b8f87ef166fcf978837c7e.tar.bz2 |
allow both x and y dimensions of redraw tiles to be configured
svn path=/trunk/netsurf/; revision=13502
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-x | amiga/gui.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 39f2d9f72..8f83f5609 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -3251,15 +3251,15 @@ void ami_do_redraw_tiled(struct gui_window_2 *gwin, //printf("%ld %ld %ld %ld\n",left, top, width, height); - for(y = top; y < (top + height); y += option_redraw_tile_size) { + for(y = top; y < (top + height); y += option_redraw_tile_size_y) { clip.y0 = 0; - clip.y1 = option_redraw_tile_size; - if(((top + height) - y) < option_redraw_tile_size) clip.y1 = (top + height) - y; + clip.y1 = option_redraw_tile_size_y; + if(((top + height) - y) < option_redraw_tile_size_y) clip.y1 = (top + height) - y; - for(x = left; x < (left + width); x += option_redraw_tile_size) { + for(x = left; x < (left + width); x += option_redraw_tile_size_x) { clip.x0 = 0; - clip.x1 = option_redraw_tile_size; - if(((left + width) - x) < option_redraw_tile_size) clip.x1 = (left + width) - x; + clip.x1 = option_redraw_tile_size_x; + if(((left + width) - x) < option_redraw_tile_size_x) clip.x1 = (left + width) - x; //printf("%ld %ld -> %ld %ld\n",clip.x0 - (int)(x / gwin->bw->scale), clip.y0 - (int)(y / gwin->bw->scale), clip.x1, clip.y1); |