From: Mira Grudzinska Date: Fri, 29 Oct 2021 12:58:07 +0000 (+0200) Subject: sw_engine: incorrect matrix used X-Git-Tag: accepted/tizen/unified/20211102.024808~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c514a167a704c3fff6f04b5e0486bd582d7e69b;p=platform%2Fcore%2Fgraphics%2Ftizenvg.git sw_engine: incorrect matrix used The invTransform should be used instead of transform - missed during all the gradient changes. --- diff --git a/src/lib/sw_engine/tvgSwFill.cpp b/src/lib/sw_engine/tvgSwFill.cpp index 929006e..20eeb3b 100644 --- a/src/lib/sw_engine/tvgSwFill.cpp +++ b/src/lib/sw_engine/tvgSwFill.cpp @@ -177,7 +177,7 @@ bool _prepareRadial(SwFill* fill, const RadialGradient* radial, const Matrix* tr fill->radial.shiftY += invTransform.e23; fill->radial.detSecDeriv = 2.0f * fill->radial.a11 * fill->radial.a11 + 2 * fill->radial.a21 * fill->radial.a21; - fill->radial.a *= sqrt(pow(transform->e11, 2) + pow(transform->e21, 2)); + fill->radial.a *= sqrt(pow(invTransform.e11, 2) + pow(invTransform.e21, 2)); } else { fill->radial.a11 = fill->radial.a22 = invR; fill->radial.a12 = fill->radial.a21 = 0.0f;