Cairo surfaces are created transparent.
And even if they weren't, overdrawing with transparency wouldn't erase
what's in the surface because it's a no-op.
It would require CAIRO_OPERATOR_CLEAR or CAIRO_OPERATOR_SOURCE.
(int) ceilf (node->bounds.size.height));
cr2 = cairo_create (surface2);
- cairo_set_source_rgba (cr2, 0, 0, 0, 0);
- cairo_paint (cr2);
-
surface = gdk_texture_download_surface (self->texture);
pattern = cairo_pattern_create_for_surface (surface);
cairo_pattern_set_extend (pattern, CAIRO_EXTEND_PAD);