[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:
Andrea Canciani 2009-11-09 14:24:13 +01:00
parent 8b25e4a7fd
commit 577ac4fc6d

View file

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