From 2e843158574f10b4f89325312aab8df6129b5803 Mon Sep 17 00:00:00 2001 From: Mira Grudzinska Date: Fri, 13 Dec 2024 01:37:41 +0100 Subject: [PATCH] sw_engine: fix grad calculations Added a term that was omitted during one of the refactorings. --- src/renderer/sw_engine/tvgSwFill.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/sw_engine/tvgSwFill.cpp b/src/renderer/sw_engine/tvgSwFill.cpp index d8b73184..15c1624f 100644 --- a/src/renderer/sw_engine/tvgSwFill.cpp +++ b/src/renderer/sw_engine/tvgSwFill.cpp @@ -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; }