bug 692744 - don't create a 1x1 image surface when it should really be empty. r=jrmuizel

This commit is contained in:
Jonathan Kew 2011-10-12 22:29:40 +01:00
Родитель 2a0422ad2e
Коммит 68621d46ad
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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