sw_engine raster: fix a regression bug.

mistaken by 8ef31f6cd0
This commit is contained in:
Hermet Park 2021-11-25 14:48:16 +09:00
parent cc96535778
commit b5e134399d

View file

@ -2244,7 +2244,7 @@ static bool _rasterSolidRadialGradientRle(SwSurface* surface, const SwRleData* r
} else {
fillFetchRadial(fill, buf, span->y, span->x, span->len);
auto ialpha = 255 - span->coverage;
for (uint32_t i = 0; i < span->len; ++i) {
for (uint32_t i = 0; i < span->len; ++i, ++dst) {
*dst = ALPHA_BLEND(buf[i], span->coverage) + ALPHA_BLEND(*dst, ialpha);
}
}