[pattern] Compute the combined color content.

When multiplying two colors together, the combined content is simply the
or of the their contents.
This commit is contained in:
Chris Wilson 2008-11-23 08:59:56 +00:00
parent 30cef3116e
commit 1d68ee73f8

View file

@ -2174,7 +2174,8 @@ _cairo_pattern_acquire_surfaces (const cairo_pattern_t *src,
combined = src_solid->color;
_cairo_color_multiply_alpha (&combined, mask_solid->color.alpha);
_cairo_pattern_init_solid (&src_tmp.solid, &combined, CAIRO_CONTENT_COLOR_ALPHA);
_cairo_pattern_init_solid (&src_tmp.solid, &combined,
src_solid->content | mask_solid->content);
src = &src_tmp.base;
mask = NULL;