summaryrefslogtreecommitdiff
path: root/test/translate-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/translate-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/translate-show-surface.c')
-rw-r--r--test/translate-show-surface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/translate-show-surface.c b/test/translate-show-surface.c
index f0c39037c..57700fc16 100644
--- a/test/translate-show-surface.c
+++ b/test/translate-show-surface.c
@@ -65,7 +65,8 @@ draw (cairo_t *cr, int width, int height)
cairo_save (cr);
{
cairo_translate (cr, i % 2, i / 2);
- cairo_show_surface (cr, surface, 1, 1);
+ cairo_set_source_surface (cr, surface, 0, 0);
+ cairo_paint (cr);
}
cairo_restore (cr);
cairo_surface_destroy (surface);