mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-25 07:39:02 +00:00
sw_engine rle: ++ precise alpha in anti-aliasing
could loss 1 pixel since it divides 255 values by 256.
This commit is contained in:
parent
edaafd99b3
commit
d49e91f683
1 changed files with 1 additions and 1 deletions
|
@ -649,7 +649,7 @@ SwSpan* _intersectSpansRegion(const SwRleData *clip, const SwRleData *targetRle,
|
||||||
out->x = sx1 > cx1 ? sx1 : cx1;
|
out->x = sx1 > cx1 ? sx1 : cx1;
|
||||||
out->len = (sx2 < cx2 ? sx2 : cx2) - out->x;
|
out->len = (sx2 < cx2 ? sx2 : cx2) - out->x;
|
||||||
out->y = spans->y;
|
out->y = spans->y;
|
||||||
out->coverage = (uint8_t)((spansCorverage * clipSpansCoverage) >> 8);
|
out->coverage = (uint8_t)(((spansCorverage * clipSpansCoverage) + 0xff) >> 8);
|
||||||
++out;
|
++out;
|
||||||
--spanCnt;
|
--spanCnt;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue