From: JunsuChoi Date: Wed, 4 Aug 2021 06:31:16 +0000 (+0900) Subject: rlottie/capi: Add missing multiply for Path X-Git-Tag: submit/tizen/20210817.055625^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=032228a66971172e6a1434938d6cd0c77edf418a;p=platform%2Fcore%2Fuifw%2Flottie-player.git rlottie/capi: Add missing multiply for Path mPath is std::vector array of VPointF as a VPath type. Since the list of points is passed to the capi structure as a float*, the size of the capi point list is twice the length of the vector array. Change-Id: Ieaf1faf29323d3e17af51d3ec8a8cf7e431571ec --- diff --git a/src/lottie/lottieitem_capi.cpp b/src/lottie/lottieitem_capi.cpp index a4d8546..6f6fb95 100644 --- a/src/lottie/lottieitem_capi.cpp +++ b/src/lottie/lottieitem_capi.cpp @@ -121,7 +121,7 @@ void renderer::Layer::buildLayerNode() auto ptPtr = reinterpret_cast(pts.data()); auto elmPtr = reinterpret_cast(elm.data()); cNode.mPath.ptPtr = ptPtr; - cNode.mPath.ptCount = pts.size(); + cNode.mPath.ptCount = 2 * pts.size(); cNode.mPath.elmPtr = elmPtr; cNode.mPath.elmCount = elm.size(); cNode.mAlpha = uchar(mask.mCombinedAlpha * 255.0f);