summaryrefslogtreecommitdiff
path: root/test/self-copy.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-05-06 13:23:41 +0000
committerCarl Worth <cworth@cworth.org>2005-05-06 13:23:41 +0000
commitd6fc5ee5e97f60972ec80fcfc52f0cf8b780d2a9 (patch)
tree9adec3ec1e637a1cca92ba8e36f3aac661217d74 /test/self-copy.c
parentcea1de7579fad18ca6c9ec9bb29660970ec283b3 (diff)
downloadcairo-d6fc5ee5e97f60972ec80fcfc52f0cf8b780d2a9.tar.gz
Remove cairo_set_target_surface and all other backend-specific cairo_set_target functions. Require a cairo_surface_t* to call cairo_create.
Port to use new cairo_create interface. Rewrite all tests that were using cairo_set_target_surface to instead create a temporary cairo_t, (eventually to be replaced with cairo_begin_group).
Diffstat (limited to 'test/self-copy.c')
-rw-r--r--test/self-copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/self-copy.c b/test/self-copy.c
index abb132711..3ad406ecc 100644
--- a/test/self-copy.c
+++ b/test/self-copy.c
@@ -55,7 +55,7 @@ draw (cairo_t *cr, int width, int height)
/* Create a pattern with the target surface as the source,
* offset by SIZE/2
*/
- pattern = cairo_pattern_create_for_surface (cairo_get_target_surface (cr));
+ pattern = cairo_pattern_create_for_surface (cairo_get_target (cr));
cairo_matrix_init_translate (&matrix, - SIZE / 2, - SIZE / 2);
cairo_pattern_set_matrix (pattern, &matrix);