mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +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
|
||||
};
|
||||
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user