diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2007-12-20 18:15:48 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2007-12-20 21:21:32 +0000 |
commit | 3bf06c336629d9a485fdb150058897e5a6a30b45 (patch) | |
tree | 979bd85b70707deb4e1b88ed8406571ba9a53b01 /test/source-clip.c | |
parent | 643834e7aa3e90678276453439017359ef942c9e (diff) |
[test/*] Create new surfaces using the group target.
cairo_get_target() returns the original surface passed to
cairo_create(), and not the current destination as required when
testing drawing to the same surface using multiple contexts.
For completeness we also use the group target when creating similar
surfaces within the tests (to check that similar surfaces of similar
surfaces also work).
Diffstat (limited to 'test/source-clip.c')
-rw-r--r-- | test/source-clip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/source-clip.c b/test/source-clip.c index cb9386a3..46eb233b 100644 --- a/test/source-clip.c +++ b/test/source-clip.c @@ -44,7 +44,7 @@ draw (cairo_t *cr, int width, int height) cairo_surface_t *source; cairo_t *cr2; - source = cairo_surface_create_similar (cairo_get_target (cr), + source = cairo_surface_create_similar (cairo_get_group_target (cr), CAIRO_CONTENT_COLOR_ALPHA, SIZE, SIZE); |