summaryrefslogtreecommitdiff
path: root/boilerplate
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2007-10-09 11:51:48 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2007-10-10 14:22:25 +0100
commit9c65efeeb108c39e6f55c9247e7d11bfea35cb66 (patch)
tree6c4876530cd6a1590b316f15dbc4b8b533e3e4b2 /boilerplate
parentcaf04b1bb89c1a7668e36d5f334765a2323bd564 (diff)
[boilerplate-test-surfaces] Check show page for errors.
Check that cairo_surface_show_page() did not generate any errors before reading back the image buffer and saving it as a png.
Diffstat (limited to 'boilerplate')
-rw-r--r--boilerplate/cairo-boilerplate-test-surfaces.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/boilerplate/cairo-boilerplate-test-surfaces.c b/boilerplate/cairo-boilerplate-test-surfaces.c
index 667ed5b5a..e112dca65 100644
--- a/boilerplate/cairo-boilerplate-test-surfaces.c
+++ b/boilerplate/cairo-boilerplate-test-surfaces.c
@@ -122,6 +122,9 @@ _cairo_boilerplate_test_paginated_surface_write_to_png (cairo_surface_t *surface
/* show page first. the automatic show_page is too late for us */
cairo_surface_show_page (surface);
+ status = cairo_surface_status (surface);
+ if (status)
+ return status;
tpc = cairo_surface_get_user_data (surface, &test_paginated_closure_key);