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/tree.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/tree.c')
-rwxr-xr-x | amiga/tree.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/amiga/tree.c b/amiga/tree.c index 0e17ae836..51cb35865 100755 --- a/amiga/tree.c +++ b/amiga/tree.c @@ -1248,14 +1248,14 @@ void ami_tree_redraw_request(int x, int y, int width, int height, void *data) y = pos_y; } - for(tile_y = y; tile_y < (y + height); tile_y += option_redraw_tile_size) { - tile_h = option_redraw_tile_size; - if(((y + height) - tile_y) < option_redraw_tile_size) + for(tile_y = y; tile_y < (y + height); tile_y += option_redraw_tile_size_y) { + tile_h = option_redraw_tile_size_y; + if(((y + height) - tile_y) < option_redraw_tile_size_y) tile_h = (y + height) - tile_y; - for(tile_x = x; tile_x < (x + width); tile_x += option_redraw_tile_size) { - tile_w = option_redraw_tile_size; - if(((x + width) - tile_x) < option_redraw_tile_size) + for(tile_x = x; tile_x < (x + width); tile_x += option_redraw_tile_size_x) { + tile_w = option_redraw_tile_size_x; + if(((x + width) - tile_x) < option_redraw_tile_size_x) tile_w = (x + width) - tile_x; tree_draw(twin->tree, - tile_x, - tile_y, |