mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-26 00:09:41 +03:00
gtk: Don't try to make zero-size bitmaps
Fixes complete failure to render wikipedia and the register when built against rsvg.
This commit is contained in:
parent
f7a0135300
commit
b22e61871c
@ -53,6 +53,10 @@ static void *bitmap_create(int width, int height, enum gui_bitmap_flags flags)
|
||||
{
|
||||
struct bitmap *gbitmap;
|
||||
|
||||
if (width == 0 || height == 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
gbitmap = calloc(1, sizeof(struct bitmap));
|
||||
if (gbitmap != NULL) {
|
||||
if (flags & BITMAP_OPAQUE) {
|
||||
|
Loading…
Reference in New Issue
Block a user