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: [PATCH] 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(); --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ tests/testcairo.c | 9 ++++++--- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 17b5b26bc5..0f41b156d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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(); + 2005-05-04 Tor Lillqvist * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 17b5b26bc5..0f41b156d8 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +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(); + 2005-05-04 Tor Lillqvist * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 17b5b26bc5..0f41b156d8 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +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(); + 2005-05-04 Tor Lillqvist * gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap) 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);