mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
sw_engine raster: fixed a wrong composition instruction.
it's a regression bug. @Issue: https://github.com/thorvg/thorvg/issues/1540
This commit is contained in:
parent
68b8fce501
commit
1b7c882be4
1 changed files with 2 additions and 1 deletions
|
@ -561,7 +561,8 @@ static bool _rasterMattedRle(SwSurface* surface, SwRleData* rle, uint8_t r, uint
|
||||||
if (span->coverage == 255) src = color;
|
if (span->coverage == 255) src = color;
|
||||||
else src = ALPHA_BLEND(color, span->coverage);
|
else src = ALPHA_BLEND(color, span->coverage);
|
||||||
for (uint32_t x = 0; x < span->len; ++x, ++dst, cmp += csize) {
|
for (uint32_t x = 0; x < span->len; ++x, ++dst, cmp += csize) {
|
||||||
*dst = INTERPOLATE(src, *dst, alpha(cmp));
|
auto tmp = ALPHA_BLEND(src, alpha(cmp));
|
||||||
|
*dst = tmp + ALPHA_BLEND(*dst, IA(tmp));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue