summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2008-08-27 16:13:57 -0700
committerCarl Worth <cworth@cworth.org>2008-09-10 14:54:18 -0700
commite0b4f8dc8fd9861359f913dd69daa0ffeb66907a (patch)
tree8044abef8253058f50ca6e2afe24e623c8a630d1
parentbdcdc8400ef8c199eb7dea961ea13b75ae93176d (diff)
Avoid missing enum warnings with pixman 0.11.9
-rw-r--r--src/cairo-image-surface.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c
index 4225548a..e0b19a7f 100644
--- a/src/cairo-image-surface.c
+++ b/src/cairo-image-surface.c
@@ -60,6 +60,10 @@ _cairo_format_from_pixman_format (pixman_format_code_t pixman_format)
case PIXMAN_a1r1g1b1: case PIXMAN_a1b1g1r1: case PIXMAN_c4:
case PIXMAN_g4: case PIXMAN_g1:
case PIXMAN_yuy2: case PIXMAN_yv12:
+#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0,11,9)
+ case PIXMAN_x2b10g10r10:
+ case PIXMAN_a2b10g10r10:
+#endif
default:
return CAIRO_FORMAT_INVALID;
}
@@ -81,6 +85,9 @@ _cairo_content_from_pixman_format (pixman_format_code_t pixman_format)
case PIXMAN_a2b2g2r2:
case PIXMAN_a1r1g1b1:
case PIXMAN_a1b1g1r1:
+#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0,11,9)
+ case PIXMAN_a2b10g10r10:
+#endif
return CAIRO_CONTENT_COLOR_ALPHA;
case PIXMAN_x8r8g8b8:
case PIXMAN_x8b8g8r8:
@@ -103,6 +110,9 @@ _cairo_content_from_pixman_format (pixman_format_code_t pixman_format)
case PIXMAN_g1:
case PIXMAN_yuy2:
case PIXMAN_yv12:
+#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0,11,9)
+ case PIXMAN_x2b10g10r10:
+#endif
return CAIRO_CONTENT_COLOR;
case PIXMAN_a8:
case PIXMAN_a1: