summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cairo-image-surface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c
index 5b6cc54cd..e94673c38 100644
--- a/src/cairo-image-surface.c
+++ b/src/cairo-image-surface.c
@@ -102,18 +102,21 @@ _cairo_format_from_pixman_format (pixman_format_t *pixman_format)
gm == 0x0000ff00 &&
bm == 0x000000ff)
return CAIRO_FORMAT_RGB24;
+ break;
case 8:
if (am == 0xff &&
rm == 0x0 &&
gm == 0x0 &&
bm == 0x0)
return CAIRO_FORMAT_A8;
+ break;
case 1:
if (am == 0x1 &&
rm == 0x0 &&
gm == 0x0 &&
bm == 0x0)
return CAIRO_FORMAT_A1;
+ break;
}
fprintf (stderr,