summaryrefslogtreecommitdiff
path: root/test/move-to-show-surface.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-05-03 08:33:32 +0000
committerCarl Worth <cworth@cworth.org>2005-05-03 08:33:32 +0000
commit05ccd7685420be7c7213e68462e1fcc4c01bad3c (patch)
tree1a78808e9128fc08b6424c537899ba98e3048a3c /test/move-to-show-surface.c
parent8283381f120c0d5a4d3d770a541a576974cfdf89 (diff)
downloadcairo-05ccd7685420be7c7213e68462e1fcc4c01bad3c.tar.gz
Originally 2005-04-20 Carl Worth <cworth@cworth.org>
Remove cairo_show_surface. Add new cairo_set_source_surface. Remove _cairo_gstate_show_surface. Replace calls to cairo_show_surface with cairo_set_source_surface; cairo_paint. Fix messages to prefer - over _. Fix documentation. Three new tests to exercise set_source_surface more completely, (two of these are expected failures dues to outstanding bugs).
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 d90d3edd1..d29b8274d 100644
--- a/test/move-to-show-surface.c
+++ b/test/move-to-show-surface.c
@@ -64,8 +64,9 @@ draw (cairo_t *cr, int width, int height)
for (i=0; i < 4; i++) {
surface = cairo_surface_create_for_image ((unsigned char *) &colors[i],
CAIRO_FORMAT_ARGB32, 1, 1, 4);
- cairo_move_to (cr, i % 2, i / 2);
- cairo_show_surface (cr, surface, 1, 1);
+ cairo_set_source_surface (cr, surface,
+ i % 2, i / 2);
+ cairo_paint (cr);
cairo_surface_destroy (surface);
}