From: Hermet Park Date: Wed, 17 Oct 2018 10:45:02 +0000 (+0900) Subject: lottieitem : fix wrong matrix computation order. X-Git-Tag: submit/tizen/20181129.071502~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7ec7801811c022be0fa57c6cb5e7cadfb6ed9d5;p=platform%2Fcore%2Fuifw%2Flottie-player.git lottieitem : fix wrong matrix computation order. It occured scaled position, now it's fixed. Change-Id: Id179c32139fb0722a6f4faaaea7044944c2e4c92 --- diff --git a/src/lottie/lottieitem.cpp b/src/lottie/lottieitem.cpp index e4ad40c..25f39b1 100644 --- a/src/lottie/lottieitem.cpp +++ b/src/lottie/lottieitem.cpp @@ -80,7 +80,7 @@ bool LOTCompItem::update(int frameNo) float ty = (viewPort.height() - viewBox.height() * scale) * 0.5; VMatrix m; - m.scale(scale, scale).translate(tx, ty); + m.translate(tx, ty).scale(scale, scale); mRootLayer->update(frameNo, m, 1.0); mCurFrameNo = frameNo;