summaryrefslogtreecommitdiff
path: root/boilerplate/cairo-boilerplate-win32.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2007-04-20 00:50:48 -0400
committerBehdad Esfahbod <behdad@behdad.org>2007-04-20 00:52:04 -0400
commitabcd929c57459f95e93504e0ef07b012b497a363 (patch)
tree5d5086d4a7f9b79ef0d3e5c1d3b8589be29c733a /boilerplate/cairo-boilerplate-win32.c
parent97624dc488b41eb83d70b2c44a595daa5d833e7f (diff)
[boilerplate] Add cairo_boilerplate_format_from_content
Diffstat (limited to 'boilerplate/cairo-boilerplate-win32.c')
-rw-r--r--boilerplate/cairo-boilerplate-win32.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/boilerplate/cairo-boilerplate-win32.c b/boilerplate/cairo-boilerplate-win32.c
index 3b95378d..cd15873a 100644
--- a/boilerplate/cairo-boilerplate-win32.c
+++ b/boilerplate/cairo-boilerplate-win32.c
@@ -39,13 +39,9 @@ _cairo_boilerplate_win32_create_surface (const char *name,
{
cairo_format_t format;
- if (content == CAIRO_CONTENT_COLOR)
- format = CAIRO_FORMAT_RGB24;
- else if (content == CAIRO_CONTENT_COLOR_ALPHA)
- format = CAIRO_FORMAT_ARGB32;
- else
- return NULL;
+ format = cairo_boilerplate_format_from_content (content);
*closure = NULL;
+
return cairo_win32_surface_create_with_dib (format, width, height);
}