mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 22:18:29 +02:00
cairo-recording-surface: Fix loss of alpha when clipping
Commit 8020e0bc introduced a regression due to a typo when copying a
mask for a cairo recording surface. It should copy the source and mask
members from the command source to the recording surface, but instead it
copies the source twice.
Fix suggested by Massimo.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=73038
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=73901
This commit is contained in:
parent
c1c3028a0c
commit
1bcce43629
1 changed files with 1 additions and 1 deletions
|
|
@ -1165,7 +1165,7 @@ _cairo_recording_surface_copy__mask (cairo_recording_surface_t *surface,
|
|||
goto err_command;
|
||||
|
||||
status = _cairo_pattern_init_copy (&command->mask.base,
|
||||
&src->mask.source.base);
|
||||
&src->mask.mask.base);
|
||||
if (unlikely (status))
|
||||
goto err_source;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue