[cairo-commit] cairo/test gradient-alpha.c, 1.2,
1.3 linear-gradient.c, 1.4, 1.5
Carl Worth
commit at pdx.freedesktop.org
Tue Apr 19 16:29:07 PDT 2005
- Previous message: [cairo-commit] cairo ChangeLog,1.516,1.517
- Next message: [cairo-commit] cairo/src cairo-glitz-surface.c, 1.32,
1.33 cairo-gstate.c, 1.111, 1.112 cairo-image-surface.c, 1.36,
1.37 cairo-pdf-surface.c, 1.29, 1.30 cairo-ps-surface.c, 1.32,
1.33 cairo-quartz-surface.c, 1.7, 1.8 cairo-surface.c, 1.59,
1.60 cairo-win32-surface.c, 1.17, 1.18 cairo-xcb-surface.c,
1.22, 1.23 cairo-xlib-surface.c, 1.59, 1.60 cairo.c, 1.78,
1.79 cairo.h, 1.99, 1.100 cairoint.h, 1.127, 1.128
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: cworth
Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv32558/test
Modified Files:
gradient-alpha.c linear-gradient.c
Log Message:
* src/cairo.c: (cairo_paint):
* src/cairo.h: Add new cairo_paint function.
* src/cairoint.h: Add new get_extents function to the surface
backend interface.
* src/cairo-gstate.c: (_cairo_gstate_get_clip_extents): Add
function to query current clip_extents.
* src/cairo-glitz-surface.c: (_cairo_glitz_surface_get_extents):
* src/cairo-image-surface.c: (_cairo_image_surface_get_extents),
(_cairo_image_abstract_surface_get_extents):
* src/cairo-pdf-surface.c: (_cairo_pdf_surface_get_extents):
* src/cairo-ps-surface.c: (_cairo_ps_surface_get_extents):
* src/cairo-quartz-surface.c: (_cairo_quartz_surface_get_extents):
* src/cairo-win32-surface.c: (_cairo_win32_get_extents):
* src/cairo-xcb-surface.c: (_cairo_xcb_surface_get_extents):
* src/cairo-xlib-surface.c: (_cairo_xlib_surface_get_extents):
Implement the new get_extents function for each backend.
* src/cairo-surface.c: (_cairo_surface_init),
(_cairo_surface_set_clip_region),
(_cairo_surface_get_clip_extents): Save the clip extents from
set_clip_region and implement _cairo_surface_get_clip_extents.
* src/cairo-xlib-surface.c: (_cairo_xlib_surface_get_size),
(_get_image_surface): Abstract away the evil XGetGeometry
roundtrip in _cairo_xlib_surface_get_size.
* test/gradient-alpha.c: (draw):
* test/linear-gradient.c: (draw): Rewrite a couple of tests to
call cairo_paint.
Index: gradient-alpha.c
===================================================================
RCS file: /cvs/cairo/cairo/test/gradient-alpha.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- gradient-alpha.c 14 Apr 2005 21:02:03 -0000 1.2
+++ gradient-alpha.c 19 Apr 2005 23:29:05 -0000 1.3
@@ -47,8 +47,7 @@
cairo_set_pattern (cr, gradient);
- cairo_rectangle (cr, 0, 0, width, height);
- cairo_fill (cr);
+ cairo_paint (cr);
cairo_pattern_destroy (gradient);
Index: linear-gradient.c
===================================================================
RCS file: /cvs/cairo/cairo/test/linear-gradient.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- linear-gradient.c 14 Apr 2005 21:42:27 -0000 1.4
+++ linear-gradient.c 19 Apr 2005 23:29:05 -0000 1.5
@@ -109,8 +109,7 @@
int i, j, k;
cairo_set_source_rgb (cr, 0.5, 0.5, 0.5);
- cairo_rectangle (cr, 0, 0, width, height);
- cairo_fill (cr);
+ cairo_paint (cr);
for (i = 0; i < N_GRADIENT_ANGLES; i++)
for (j = 0; j < N_ROTATE_ANGLES; j++)
- Previous message: [cairo-commit] cairo ChangeLog,1.516,1.517
- Next message: [cairo-commit] cairo/src cairo-glitz-surface.c, 1.32,
1.33 cairo-gstate.c, 1.111, 1.112 cairo-image-surface.c, 1.36,
1.37 cairo-pdf-surface.c, 1.29, 1.30 cairo-ps-surface.c, 1.32,
1.33 cairo-quartz-surface.c, 1.7, 1.8 cairo-surface.c, 1.59,
1.60 cairo-win32-surface.c, 1.17, 1.18 cairo-xcb-surface.c,
1.22, 1.23 cairo-xlib-surface.c, 1.59, 1.60 cairo.c, 1.78,
1.79 cairo.h, 1.99, 1.100 cairoint.h, 1.127, 1.128
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list