From 3e77ceeb81deb21494b8f87ef166fcf978837c7e Mon Sep 17 00:00:00 2001 From: Chris Young Date: Wed, 29 Feb 2012 19:09:55 +0000 Subject: allow both x and y dimensions of redraw tiles to be configured svn path=/trunk/netsurf/; revision=13502 --- amiga/tree.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'amiga/tree.c') 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, -- cgit v1.2.3