diff options
author | Carl Worth <cworth@cworth.org> | 2005-07-27 15:39:34 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-07-27 15:39:34 +0000 |
commit | 2b5d9c8e007f4198b1c48bce53491842f065a759 (patch) | |
tree | 3b2cf306a63ef8d18117c69a52ca419a581c12c3 /test/surface-finish-twice.c | |
parent | c884c4c541abe380500e24a55ec017677d56db19 (diff) |
Add CAIRO_STATUS_INVALID_CONTENT, CAIRO_STATUS_INVALID_FORMAT, and CAIRO_STATUS_INVALID_VISUAL.
Change functions to return type of void:
cairo_scaled_font_extents cairo_surface_finish
Add new functions to query object status:
cairo_scaled_font_status cairo_surface_status
Implementation of new error handling scheme for cairo_surface_t and cairo_scaled_font_t.
Track change in return value of cairo_surface_finish.
Diffstat (limited to 'test/surface-finish-twice.c')
-rw-r--r-- | test/surface-finish-twice.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/surface-finish-twice.c b/test/surface-finish-twice.c index 68d49c92..ce4f0659 100644 --- a/test/surface-finish-twice.c +++ b/test/surface-finish-twice.c @@ -55,12 +55,13 @@ draw (cairo_t *cr, int width, int height) cairo_status_t status; surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 1, 1); - status = cairo_surface_finish (surface); - if (status != CAIRO_STATUS_SUCCESS) + + cairo_surface_finish (surface); + if (cairo_surface_status (surface) != CAIRO_STATUS_SUCCESS) return CAIRO_TEST_FAILURE; - status = cairo_surface_finish (surface); - if (status != CAIRO_STATUS_SURFACE_FINISHED) + cairo_surface_finish (surface); + if (cairo_surface_status (surface) != CAIRO_STATUS_SURFACE_FINISHED) return CAIRO_TEST_FAILURE; cairo_surface_destroy (surface); |