Use CLEAR operator in mask.c in order to not trig image fallback

for polygon masking.
(cherry picked from 30b2d1c5df9d1c6b536838a6a3407fdfa7198e29 commit)
This commit is contained in:
Emmanuel Pacaud 2006-04-25 21:55:56 +02:00 committed by Carl Worth
parent 9bca27a1ad
commit 5515191f84

View file

@ -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);