From d990d0164018129b5cc744de3d0fcafb4e9b3360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Sandmann?= Date: Wed, 4 May 2005 17:22:20 +0000 Subject: Replace cairo_show_surface() uses with MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wed May 4 13:21:41 2005 Søren Sandmann * tests/testcairo.c (draw): Replace cairo_show_surface() uses with cairo_set_source_surface()/cairo_paint(); --- tests/testcairo.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/testcairo.c b/tests/testcairo.c index 47abeb4603..141bb8517f 100644 --- a/tests/testcairo.c +++ b/tests/testcairo.c @@ -172,7 +172,8 @@ draw (cairo_t *cr, cairo_restore (cr); cairo_set_operator (cr, CAIRO_OPERATOR_OUT_REVERSE); - cairo_show_surface (cr, punch, width, height); + cairo_set_source_surface (cr, punch, 0, 0); + cairo_paint (cr); /* Now draw the 3 circles in a subgroup again * at half intensity, and use OperatorAdd to join up @@ -187,11 +188,13 @@ draw (cairo_t *cr, cairo_restore (cr); cairo_set_operator (cr, CAIRO_OPERATOR_ADD); - cairo_show_surface (cr, circles, width, height); + cairo_set_source_surface (cr, circles, 0, 0); + cairo_paint (cr); cairo_restore (cr); - cairo_show_surface (cr, overlay, width, height); + cairo_set_source_surface (cr, overlay, 0, 0); + cairo_paint (cr); cairo_surface_destroy (overlay); cairo_surface_destroy (punch); -- cgit v1.2.1