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/thumbnail.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/thumbnail.c')
-rwxr-xr-x | amiga/thumbnail.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/amiga/thumbnail.c b/amiga/thumbnail.c index 4658f6bdd..ae8993a72 100755 --- a/amiga/thumbnail.c +++ b/amiga/thumbnail.c @@ -42,13 +42,17 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap, struct BitScaleArgs bsa; int plot_width; int plot_height; + int redraw_tile_size = option_redraw_tile_size_x; struct redraw_context ctx = { .interactive = false, .background_images = true, .plot = &amiplot }; - plot_width = MIN(content_get_width(content), option_redraw_tile_size); + if(option_redraw_tile_size_y < option_redraw_tile_size_x) + redraw_tile_size = option_redraw_tile_size_y; + + plot_width = MIN(content_get_width(content), redraw_tile_size); plot_height = ((plot_width * bitmap->height) + (bitmap->width / 2)) / bitmap->width; |