summaryrefslogtreecommitdiff
path: root/test/move-to-show-surface.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/move-to-show-surface.c
parenta790a2ea79507cae9564006ac32e27a0fcca8d60 (diff)
downloadcairo-d7fe527e0f48f23821b7283d8d003fd1f6a3f899.tar.gz
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/move-to-show-surface.c')
-rw-r--r--test/move-to-show-surface.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/move-to-show-surface.c b/test/move-to-show-surface.c
index d29b8274d..c5cc1ae59 100644
--- a/test/move-to-show-surface.c
+++ b/test/move-to-show-surface.c
@@ -62,8 +62,9 @@ draw (cairo_t *cr, int width, int height)
int i;
for (i=0; i < 4; i++) {
- surface = cairo_surface_create_for_image ((unsigned char *) &colors[i],
- CAIRO_FORMAT_ARGB32, 1, 1, 4);
+ surface = cairo_image_surface_create_for_data ((unsigned char *) &colors[i],
+ CAIRO_FORMAT_ARGB32,
+ 1, 1, 4);
cairo_set_source_surface (cr, surface,
i % 2, i / 2);
cairo_paint (cr);