diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2017-10-25 17:49:25 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2017-10-25 17:51:25 +0100 |
commit | 341c22d2a593040c558de5f9b82d3f740207d82f (patch) | |
tree | 17492c075e95eef8b19da9b02b4149dbf6927b5c /frontends/windows | |
parent | 9af420b7afb8f54ae64c0ba3f10427f8c6a5b0ce (diff) | |
download | netsurf-341c22d2a593040c558de5f9b82d3f740207d82f.tar.gz netsurf-341c22d2a593040c558de5f9b82d3f740207d82f.tar.bz2 |
Windows: Use bitmap width as minimum width, since content width may be 0.
Diffstat (limited to 'frontends/windows')
-rw-r--r-- | frontends/windows/bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/windows/bitmap.c b/frontends/windows/bitmap.c index 1266adb61..eed3d3a15 100644 --- a/frontends/windows/bitmap.c +++ b/frontends/windows/bitmap.c @@ -326,7 +326,7 @@ bitmap_render(struct bitmap *bitmap, struct hlcache_handle *content) .plot = &win_plotters }; - width = min(content_get_width(content), 1024); + width = min(max(content_get_width(content), bitmap->width), 1024); height = ((width * bitmap->height) + (bitmap->width / 2)) / bitmap->width; |