summaryrefslogtreecommitdiff
path: root/test/mask.c
diff options
context:
space:
mode:
authorEmmanuel Pacaud <emmanuel.pacaud@free.fr>2006-04-25 21:55:56 +0200
committerCarl Worth <cworth@cworth.org>2006-04-27 06:50:37 -0700
commit5515191f84bb837383278495f1f7034e7a97bdce (patch)
tree6a39b2c3dacbcffe2a8d5b9cb5f87d96438f3a6d /test/mask.c
parent9bca27a1adc89b12905ec95ebb4e006830010df1 (diff)
Use CLEAR operator in mask.c in order to not trig image fallback
for polygon masking. (cherry picked from 30b2d1c5df9d1c6b536838a6a3407fdfa7198e29 commit)
Diffstat (limited to 'test/mask.c')
-rw-r--r--test/mask.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/mask.c b/test/mask.c
index 6d0e45878..2f0349d84 100644
--- a/test/mask.c
+++ b/test/mask.c
@@ -81,8 +81,7 @@ mask_polygon (cairo_t *cr, int x, int y)
cr2 = cairo_create (mask_surface);
cairo_save (cr2);
- cairo_set_source_rgba (cr2, 0, 0, 0, 0); /* transparent */
- cairo_set_operator (cr2, CAIRO_OPERATOR_SOURCE);
+ cairo_set_operator (cr2, CAIRO_OPERATOR_CLEAR);
cairo_paint (cr2);
cairo_restore (cr2);