mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 00:38:06 +02:00
[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:
parent
30cef3116e
commit
1d68ee73f8
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue