mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-08 20:12:01 +03:00
Windows: Use bitmap width as minimum width, since content width may be 0.
This commit is contained in:
parent
9af420b7af
commit
341c22d2a5
@ -326,7 +326,7 @@ bitmap_render(struct bitmap *bitmap, struct hlcache_handle *content)
|
|||||||
.plot = &win_plotters
|
.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)) /
|
height = ((width * bitmap->height) + (bitmap->width / 2)) /
|
||||||
bitmap->width;
|
bitmap->width;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user