summaryrefslogtreecommitdiff
path: root/test/clip-twice.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2005-06-03 16:40:15 +0000
committerKristian Høgsberg <krh@redhat.com>2005-06-03 16:40:15 +0000
commit7b4a65dba4b37111ec56b9cbb5d462bc08d4b0db (patch)
treecfa1e28577a4df1b16eaa0aecf2bceb155cbc7bb /test/clip-twice.c
parent7c47633b2c74e329f04b9f1ebde4c05c409d73c0 (diff)
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.
Diffstat (limited to 'test/clip-twice.c')
-rw-r--r--test/clip-twice.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/clip-twice.c b/test/clip-twice.c
index eebfec944..446447c68 100644
--- a/test/clip-twice.c
+++ b/test/clip-twice.c
@@ -63,6 +63,12 @@ draw (cairo_t *cr, int width, int height)
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;
}