Replace cairo_show_surface() uses with

Wed May  4 13:21:41 2005  Søren Sandmann  <sandmann@redhat.com>

	* tests/testcairo.c (draw): Replace cairo_show_surface() uses with
	cairo_set_source_surface()/cairo_paint();
This commit is contained in:
Søren Sandmann 2005-05-04 17:22:20 +00:00 committed by Søren Sandmann Pedersen
parent 7aee89d29d
commit d990d01640
4 changed files with 21 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Wed May 4 13:21:41 2005 Søren Sandmann <sandmann@redhat.com>
* tests/testcairo.c (draw): Replace cairo_show_surface() uses with
cairo_set_source_surface()/cairo_paint();
2005-05-04 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)

View File

@ -1,3 +1,8 @@
Wed May 4 13:21:41 2005 Søren Sandmann <sandmann@redhat.com>
* tests/testcairo.c (draw): Replace cairo_show_surface() uses with
cairo_set_source_surface()/cairo_paint();
2005-05-04 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)

View File

@ -1,3 +1,8 @@
Wed May 4 13:21:41 2005 Søren Sandmann <sandmann@redhat.com>
* tests/testcairo.c (draw): Replace cairo_show_surface() uses with
cairo_set_source_surface()/cairo_paint();
2005-05-04 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkdrawable-win32.c (generic_draw, blit_from_pixmap)

View File

@ -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);