mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
pixman doesn't support 0x0 images so ensure we don't ever create them.
b=463301 p=jrmuizel r=vlad a=blocking191
This commit is contained in:
parent
04974134fc
commit
707c8cc829
@ -324,7 +324,7 @@ _cairo_image_surface_create_with_pixman_format (unsigned char *data,
|
||||
cairo_surface_t *surface;
|
||||
pixman_image_t *pixman_image;
|
||||
|
||||
pixman_image = pixman_image_create_bits (pixman_format, width, height,
|
||||
pixman_image = pixman_image_create_bits (pixman_format, width ? width : 1, height ? height : 1,
|
||||
(uint32_t *) data, stride);
|
||||
|
||||
if (pixman_image == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user