diff options
author | Søren Sandmann <sandmann@redhat.com> | 2005-05-04 17:22:20 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2005-05-04 17:22:20 +0000 |
commit | d990d0164018129b5cc744de3d0fcafb4e9b3360 (patch) | |
tree | d4315b7975edf4c4eda6704e4efdbc5e93a3b277 /tests/testcairo.c | |
parent | 7aee89d29d09f6f36d8637979a2a9549e84b2700 (diff) | |
download | gtk+-d990d0164018129b5cc744de3d0fcafb4e9b3360.tar.gz |
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();
Diffstat (limited to 'tests/testcairo.c')
-rw-r--r-- | tests/testcairo.c | 9 |
1 files changed, 6 insertions, 3 deletions
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); |