diff options
Diffstat (limited to 'boilerplate/cairo-boilerplate-quartz.c')
-rw-r--r-- | boilerplate/cairo-boilerplate-quartz.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/boilerplate/cairo-boilerplate-quartz.c b/boilerplate/cairo-boilerplate-quartz.c index d6df7fa03..3b23aed2a 100644 --- a/boilerplate/cairo-boilerplate-quartz.c +++ b/boilerplate/cairo-boilerplate-quartz.c @@ -39,14 +39,7 @@ _cairo_boilerplate_quartz_create_surface (const char *name, { cairo_format_t format; - switch (content) { - case CAIRO_CONTENT_COLOR: format = CAIRO_FORMAT_RGB24; break; - case CAIRO_CONTENT_COLOR_ALPHA: format = CAIRO_FORMAT_ARGB32; break; - case CAIRO_CONTENT_ALPHA: format = CAIRO_FORMAT_A8; break; - default: - assert (0); /* not reached */ - return NULL; - } + format = cairo_boilerplate_format_from_content (content); *closure = NULL; |