Windows: Use bitmap width as minimum width, since content width may be 0.

This commit is contained in:
Michael Drake 2017-10-25 17:49:25 +01:00
parent 9af420b7af
commit 341c22d2a5

View File

@ -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;