mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-15 01:30:21 +01:00
[quartz] Fix implied colour of alpha-only surface sources
If a fill colour was set, an alpha-only surface source would have used that colour instead of black.
This commit is contained in:
parent
8b25e4a7fd
commit
577ac4fc6d
1 changed files with 2 additions and 0 deletions
|
|
@ -1274,6 +1274,8 @@ _cairo_quartz_setup_source (cairo_quartz_surface_t *surface,
|
|||
if (status)
|
||||
return DO_UNSUPPORTED;
|
||||
|
||||
CGContextSetRGBFillColor (surface->cgContext, 0, 0, 0, 1);
|
||||
|
||||
surface->sourceImage = img;
|
||||
|
||||
cairo_matrix_invert(&m);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue