From 68621d46adfdd878ffdb240b7920bd7dd48a78f5 Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Wed, 12 Oct 2011 22:29:40 +0100 Subject: [PATCH] bug 692744 - don't create a 1x1 image surface when it should really be empty. r=jrmuizel --- gfx/cairo/cairo/src/cairo-image-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/cairo/cairo/src/cairo-image-surface.c b/gfx/cairo/cairo/src/cairo-image-surface.c index 2f0cf031aca7..57548322a38c 100644 --- a/gfx/cairo/cairo/src/cairo-image-surface.c +++ b/gfx/cairo/cairo/src/cairo-image-surface.c @@ -326,7 +326,7 @@ _cairo_image_surface_create_with_pixman_format (unsigned char *data, return _cairo_surface_create_in_error (_cairo_error (CAIRO_STATUS_INVALID_SIZE)); } - pixman_image = pixman_image_create_bits (pixman_format, width ? width : 1, height ? height : 1, + pixman_image = pixman_image_create_bits (pixman_format, width, height, (uint32_t *) data, stride ? stride : 4); if (unlikely (pixman_image == NULL))