summaryrefslogtreecommitdiff
path: root/test/trap-clip.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-05-06 13:32:53 +0000
committerCarl Worth <cworth@cworth.org>2005-05-06 13:32:53 +0000
commitd7fe527e0f48f23821b7283d8d003fd1f6a3f899 (patch)
treef6c328f6ff82dba87187bc6cfa265a4982c1ddce /test/trap-clip.c
parenta790a2ea79507cae9564006ac32e27a0fcca8d60 (diff)
Eliminate the following deprecated functions from cairo's interface:
cairo_copy cairo_get_path cairo_get_path_flat cairo_matrix_create cairo_matrix_destroy cairo_matrix_copy cairo_matrix_get_affine cairo_surface_set_repeat cairo_surface_set_matrix cairo_surface_get_matrix cairo_surface_set_filter cairo_surface_get_filter Also, eliminate all support for compiling against, or running with old, deprecated names for functions. Deal with all of the removals.
Diffstat (limited to 'test/trap-clip.c')
-rw-r--r--test/trap-clip.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/trap-clip.c b/test/trap-clip.c
index 15549ae1b..241680392 100644
--- a/test/trap-clip.c
+++ b/test/trap-clip.c
@@ -52,9 +52,9 @@ set_gradient_pattern (cairo_t *cr, int x, int y)
pattern =
cairo_pattern_create_linear (x, y, x + WIDTH, y + HEIGHT);
- cairo_pattern_add_color_stop (pattern, 0, 1, 1, 1, 1);
- cairo_pattern_add_color_stop (pattern, 1, 0, 0, 0.4, 1);
- cairo_set_pattern (cr, pattern);
+ cairo_pattern_add_color_stop_rgba (pattern, 0, 1, 1, 1, 1);
+ cairo_pattern_add_color_stop_rgba (pattern, 1, 0, 0, 0.4, 1);
+ cairo_set_source (cr, pattern);
}
static void
@@ -63,7 +63,7 @@ set_image_pattern (cairo_t *cr, int x, int y)
cairo_pattern_t *pattern;
pattern = cairo_test_create_png_pattern (cr, png_filename);
- cairo_set_pattern (cr, pattern);
+ cairo_set_source (cr, pattern);
}
static void