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:
Jeff Muizelaar 2008-11-13 16:25:37 -05:00
parent 04974134fc
commit 707c8cc829

View File

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