summaryrefslogtreecommitdiff
path: root/test/random-clips.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-09-26 13:26:33 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-09-26 13:30:35 +0100
commit303893681f284c734a078012e6521ebb627a54d6 (patch)
tree78ed4a78426a494f0e402706b04758461c018d00 /test/random-clips.c
parent9fe7022790478cfcd10a13390a6686497f2c9339 (diff)
downloadcairo-303893681f284c734a078012e6521ebb627a54d6.tar.gz
test/random-clips: Paint clip to highlight the issues
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test/random-clips.c')
-rw-r--r--test/random-clips.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/random-clips.c b/test/random-clips.c
index 9fed28eae..31d7d6df0 100644
--- a/test/random-clips.c
+++ b/test/random-clips.c
@@ -150,6 +150,9 @@ draw (cairo_t *cr, int width, int height)
cairo_clip (cr);
nz_fill_stroke (cr);
+
+ cairo_set_source_rgba (cr, 1, 1, 1, 0.5);
+ cairo_paint (cr);
} cairo_restore (cr);
cairo_translate (cr, STEP, 0);
@@ -162,6 +165,9 @@ draw (cairo_t *cr, int width, int height)
cairo_clip (cr);
nz_fill_stroke (cr);
+
+ cairo_set_source_rgba (cr, 1, 1, 1, 0.5);
+ cairo_paint (cr);
} cairo_restore (cr);
cairo_translate (cr, -2*STEP, STEP);
@@ -174,6 +180,9 @@ draw (cairo_t *cr, int width, int height)
cairo_clip (cr);
nz_fill_stroke (cr);
+
+ cairo_set_source_rgba (cr, 1, 1, 1, 0.5);
+ cairo_paint (cr);
} cairo_restore (cr);
cairo_translate (cr, STEP, 0);
@@ -186,6 +195,9 @@ draw (cairo_t *cr, int width, int height)
cairo_clip (cr);
nz_fill_stroke (cr);
+
+ cairo_set_source_rgba (cr, 1, 1, 1, 0.5);
+ cairo_paint (cr);
} cairo_restore (cr);
cairo_translate (cr, STEP, 0);
@@ -204,6 +216,9 @@ draw (cairo_t *cr, int width, int height)
cairo_clip (cr);
nz_fill_stroke (cr);
+
+ cairo_set_source_rgba (cr, 1, 1, 1, 0.5);
+ cairo_paint (cr);
} cairo_restore (cr);
return CAIRO_TEST_SUCCESS;