From 5515191f84bb837383278495f1f7034e7a97bdce Mon Sep 17 00:00:00 2001 From: Emmanuel Pacaud Date: Tue, 25 Apr 2006 21:55:56 +0200 Subject: Use CLEAR operator in mask.c in order to not trig image fallback for polygon masking. (cherry picked from 30b2d1c5df9d1c6b536838a6a3407fdfa7198e29 commit) --- test/mask.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/mask.c') 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); -- cgit v1.2.3