mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-26 18:10:11 +01:00
Clear completely the temporary surface between each subtest in mask.c
That helps SVG backend to pass this test, since CAIRO_OPERATOR_CLEAR on a part of a surface use "comp-op" element which is not supported with current librsvg.
This commit is contained in:
parent
9c65dee86b
commit
ffab2592fc
1 changed files with 3 additions and 5 deletions
|
|
@ -213,12 +213,10 @@ draw (cairo_t *cr, int width, int height)
|
|||
int x = i * (WIDTH + PAD) + PAD;
|
||||
int y = (ARRAY_SIZE (mask_funcs) * k + j) * (HEIGHT + PAD) + PAD;
|
||||
|
||||
/* Clear area we are going to be drawing onto */
|
||||
/* Clear intermediate surface we are going to be drawing onto */
|
||||
cairo_save (cr2);
|
||||
cairo_set_source_rgba (cr2, 0, 0, 0, 0); /* transparent */
|
||||
cairo_set_operator (cr2, CAIRO_OPERATOR_SOURCE);
|
||||
cairo_rectangle (cr2, x, y, WIDTH, HEIGHT);
|
||||
cairo_fill (cr2);
|
||||
cairo_set_operator (cr2, CAIRO_OPERATOR_CLEAR);
|
||||
cairo_paint (cr2);
|
||||
cairo_restore (cr2);
|
||||
|
||||
/* draw */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue