mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 11:08:12 +02:00
image: The a8 in-place span compositing is only valid for SOURCE
Fixes test/a8-clear. Reported-by: Jeremy Moles <jeremy@emperorlinux.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
05faebd584
commit
66ace8cd33
1 changed files with 7 additions and 2 deletions
|
|
@ -3447,10 +3447,15 @@ _composite_spans (void *closure,
|
|||
/* TODO: support rendering to A1 surfaces (or: go add span
|
||||
* compositing to pixman.) */
|
||||
|
||||
if (pattern == NULL && dst_format == PIXMAN_a8) {
|
||||
if (pattern == NULL &&
|
||||
dst_format == PIXMAN_a8 &&
|
||||
op == CAIRO_OPERATOR_SOURCE)
|
||||
{
|
||||
mask = dst;
|
||||
dst = NULL;
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
int stride = CAIRO_STRIDE_FOR_WIDTH_BPP (extents->width, 8);
|
||||
uint8_t *data = mask_buf;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue