summaryrefslogtreecommitdiff
path: root/test/mask.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-07-08 10:12:28 +0000
committerCarl Worth <cworth@cworth.org>2005-07-08 10:12:28 +0000
commit9a2ba48b298c3bf4b462e1030b105efaf9fd015c (patch)
treee3f9d44c18fbf36a70f9834e7350cb6cceb78641 /test/mask.c
parent9fd2f0a25c4954e839d79de00ff14b1990ae39eb (diff)
downloadcairo-9a2ba48b298c3bf4b462e1030b105efaf9fd015c.tar.gz
Give enum tags an underscore prefix to match the style of the struct tags. Add new cairo_content_t and change cairo_surface_create_similar to accept a cairo_content_t rather than a cairo_format_t.
Change surface backend create_similar call to accept a cairo_content_t rather than a cairo_format_t. Fix all calls into create_similar to pass a cairo_content_t rather than a cairo_format_t.
Diffstat (limited to 'test/mask.c')
-rw-r--r--test/mask.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mask.c b/test/mask.c
index ec0322da0..89626167b 100644
--- a/test/mask.c
+++ b/test/mask.c
@@ -74,7 +74,7 @@ mask_polygon (cairo_t *cr, int x, int y)
cairo_t *cr2;
mask_surface = cairo_surface_create_similar (cairo_get_target (cr),
- CAIRO_FORMAT_A8,
+ CAIRO_CONTENT_ALPHA,
WIDTH, HEIGHT);
cr2 = cairo_create (mask_surface);
@@ -196,7 +196,7 @@ draw (cairo_t *cr, int width, int height)
* a temporary surface and copy over.
*/
tmp_surface = cairo_surface_create_similar (cairo_get_target (cr),
- CAIRO_FORMAT_ARGB32,
+ CAIRO_CONTENT_COLOR_ALPHA,
IMAGE_WIDTH, IMAGE_HEIGHT);
cr2 = cairo_create (tmp_surface);