diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-10-21 11:27:17 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-10-21 11:31:06 +0100 |
commit | 971f030b7dca7ce24e54d0465900e6984020345e (patch) | |
tree | c9515b6984f785fd59d9eee076d4ce3a503671bc | |
parent | 9b919b0e91b6c64acbcbfc05c72610188327be67 (diff) |
[test/operator-clear] Propagate errors.
Use cairo_get_target() to propagate errors from secondary contexts.
-rw-r--r-- | test/operator-clear.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/operator-clear.c b/test/operator-clear.c index f1eb32248..d6c4d30ea 100644 --- a/test/operator-clear.c +++ b/test/operator-clear.c @@ -65,17 +65,15 @@ draw_mask (cairo_t *cr, int x, int y) CAIRO_CONTENT_ALPHA, width, height); cr2 = cairo_create (mask_surface); + cairo_surface_destroy (mask_surface); cairo_set_source_rgb (cr2, 1, 1, 1); /* white */ cairo_arc (cr2, 0.5 * width, 0.5 * height, 0.45 * height, 0, 2 * M_PI); cairo_fill (cr2); + cairo_mask_surface (cr, cairo_get_target (cr2), x, y); cairo_destroy (cr2); - - cairo_mask_surface (cr, mask_surface, x, y); - - cairo_surface_destroy (mask_surface); } static void |