summaryrefslogtreecommitdiff
path: root/boilerplate/cairo-boilerplate-test-surfaces.c
diff options
context:
space:
mode:
authorVladimir Vukicevic <vladimir@pobox.com>2007-09-11 13:30:35 -0700
committerVladimir Vukicevic <vladimir@pobox.com>2007-09-11 13:30:35 -0700
commit9e975757a2820303d67e8497ab6cef9368237eb5 (patch)
treeb0b5e8b489b44c74b2695c59c0c80c2463723223 /boilerplate/cairo-boilerplate-test-surfaces.c
parent7dd05b7f86da6a465bb979c2ba955655ddcf66ed (diff)
downloadcairo-9e975757a2820303d67e8497ab6cef9368237eb5.tar.gz
Export cairo_surface_{copy,show}_page
This patch adds cairo_surface_copy_page and cairo_surface_show_page as public methods, leaving the previous cairo_show_page variants as shorthands. copy_page/show_page are specific to the surface, not to the context, so they need to be surface methods.
Diffstat (limited to 'boilerplate/cairo-boilerplate-test-surfaces.c')
-rw-r--r--boilerplate/cairo-boilerplate-test-surfaces.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/boilerplate/cairo-boilerplate-test-surfaces.c b/boilerplate/cairo-boilerplate-test-surfaces.c
index 93ca5e7fc..667ed5b5a 100644
--- a/boilerplate/cairo-boilerplate-test-surfaces.c
+++ b/boilerplate/cairo-boilerplate-test-surfaces.c
@@ -121,10 +121,7 @@ _cairo_boilerplate_test_paginated_surface_write_to_png (cairo_surface_t *surface
cairo_status_t status;
/* show page first. the automatic show_page is too late for us */
- /* XXX use cairo_surface_show_page() when that's added */
- cairo_t *cr = cairo_create (surface);
- cairo_show_page (cr);
- cairo_destroy (cr);
+ cairo_surface_show_page (surface);
tpc = cairo_surface_get_user_data (surface, &test_paginated_closure_key);