[cairo-commit] cairo/test surface-finish-twice.c,1.3,1.4
Carl Worth
commit at pdx.freedesktop.org
Wed Jul 27 15:39:38 PDT 2005
- Previous message: [cairo-commit] cairo/doc/public/tmpl cairo-surface.sgml, 1.12,
1.13 cairo.sgml, 1.24, 1.25
- Next message: [cairo-commit]
cairo/src cairo-array.c, 1.4, 1.5 cairo-atsui-font.c,
1.13, 1.14 cairo-font.c, 1.55, 1.56 cairo-ft-font.c, 1.78,
1.79 cairo-glitz-surface.c, 1.52, 1.53 cairo-gstate.c, 1.148,
1.149 cairo-image-surface.c, 1.50, 1.51 cairo-meta-surface.c,
1.4, 1.5 cairo-path-data.c, 1.7, 1.8 cairo-pattern.c, 1.50,
1.51 cairo-pdf-surface.c, 1.53, 1.54 cairo-png.c, 1.17,
1.18 cairo-ps-surface.c, 1.43, 1.44 cairo-quartz-surface.c,
1.14, 1.15 cairo-surface.c, 1.80, 1.81 cairo-win32-font.c,
1.26, 1.27 cairo-win32-surface.c, 1.29,
1.30 cairo-xcb-surface.c, 1.40, 1.41 cairo-xlib-surface.c,
1.97, 1.98 cairo.c, 1.114, 1.115 cairo.h, 1.139,
1.140 cairoint.h, 1.169, 1.170
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: cworth
Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv415/test
Modified Files:
surface-finish-twice.c
Log Message:
* src/cairo.h: 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
* doc/public/tmpl/cairo.sgml:
* src/cairo-array.c:
* src/cairo-atsui-font.c:
* src/cairo-font.c:
* src/cairo-ft-font.c:
* src/cairo-glitz-surface.c:
* src/cairo-gstate.c:
* src/cairo-image-surface.c:
* src/cairo-meta-surface.c:
* src/cairo-path-data.c:
* src/cairo-pattern.c:
* src/cairo-pdf-surface.c:
* src/cairo-png.c:
* src/cairo-ps-surface.c:
* src/cairo-quartz-surface.c:
* src/cairo-surface.c:
* src/cairo-win32-font.c:
* src/cairo-win32-surface.c:
* src/cairo-xcb-surface.c:
* src/cairo-xlib-surface.c:
* src/cairo.c:
* src/cairoint.h: Implementation of new error handling scheme for
cairo_surface_t and cairo_scaled_font_t.
* test/surface-finish-twice.c: Track change in return value of
cairo_surface_finish.
Index: surface-finish-twice.c
===================================================================
RCS file: /cvs/cairo/cairo/test/surface-finish-twice.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- surface-finish-twice.c 15 Jul 2005 00:55:59 -0000 1.3
+++ surface-finish-twice.c 27 Jul 2005 22:39:35 -0000 1.4
@@ -55,12 +55,13 @@
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);
- Previous message: [cairo-commit] cairo/doc/public/tmpl cairo-surface.sgml, 1.12,
1.13 cairo.sgml, 1.24, 1.25
- Next message: [cairo-commit]
cairo/src cairo-array.c, 1.4, 1.5 cairo-atsui-font.c,
1.13, 1.14 cairo-font.c, 1.55, 1.56 cairo-ft-font.c, 1.78,
1.79 cairo-glitz-surface.c, 1.52, 1.53 cairo-gstate.c, 1.148,
1.149 cairo-image-surface.c, 1.50, 1.51 cairo-meta-surface.c,
1.4, 1.5 cairo-path-data.c, 1.7, 1.8 cairo-pattern.c, 1.50,
1.51 cairo-pdf-surface.c, 1.53, 1.54 cairo-png.c, 1.17,
1.18 cairo-ps-surface.c, 1.43, 1.44 cairo-quartz-surface.c,
1.14, 1.15 cairo-surface.c, 1.80, 1.81 cairo-win32-font.c,
1.26, 1.27 cairo-win32-surface.c, 1.29,
1.30 cairo-xcb-surface.c, 1.40, 1.41 cairo-xlib-surface.c,
1.97, 1.98 cairo.c, 1.114, 1.115 cairo.h, 1.139,
1.140 cairoint.h, 1.169, 1.170
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list