[cairo-commit]
cairo/test clip-twice-ref.png, 1.3, 1.4 clip-twice.c, 1.4, 1.5
Kristian Hogsberg
commit at pdx.freedesktop.org
Fri Jun 3 16:40:18 PDT 2005
Committed by: krh
Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv11244/test
Modified Files:
clip-twice-ref.png clip-twice.c
Log Message:
2005-06-02 Kristian Høgsberg <krh at redhat.com>
* src/cairo-gstate.c (_cairo_gstate_clip): When clipping, update
the clip surface to a new surface the size of the intersection of
the old clip surface and the extents of the new clip path.
Index: clip-twice-ref.png
===================================================================
RCS file: /cvs/cairo/cairo/test/clip-twice-ref.png,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
Binary files /tmp/cvsQpuGCf and /tmp/cvsuJ5pC6 differ
Index: clip-twice.c
===================================================================
RCS file: /cvs/cairo/cairo/test/clip-twice.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- clip-twice.c 14 Apr 2005 21:42:27 -0000 1.4
+++ clip-twice.c 3 Jun 2005 23:40:16 -0000 1.5
@@ -63,6 +63,12 @@
cairo_close_path (cr);
cairo_fill (cr);
+ cairo_new_path (cr);
+ cairo_arc (cr, WIDTH / 2, HEIGHT / 2, WIDTH / 5, 0, 2 * M_PI);
+ cairo_clip (cr);
+ cairo_set_source_rgb (cr, 1, 1, 0);
+ cairo_paint (cr);
+
return CAIRO_TEST_SUCCESS;
}
More information about the cairo-commit
mailing list