mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 03:28:09 +02:00
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:
parent
9bca27a1ad
commit
5515191f84
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue