sw_engine: fix grad calculations

Added a term that was omitted during one of the refactorings.
This commit is contained in:
Mira Grudzinska 2024-12-13 01:37:41 +01:00 committed by Hermet Park
parent 79cbc0ebbc
commit 2e84315857

View file

@ -466,6 +466,7 @@ void fillRadial(const SwFill* fill, uint8_t* dst, uint32_t y, uint32_t x, uint32
auto src = MULTIPLY(A(_pixel(fill, sqrtf(det))), a);
auto tmp = maskOp(src, *cmp, 0);
*dst = tmp + MULTIPLY(*dst, ~tmp);
det += deltaDet;
deltaDet += deltaDeltaDet;
b += deltaB;
}