rlottie/capi: Add missing multiply for Path accepted/tizen/6.5/unified/20211028.121457 accepted/tizen/unified/20210818.124603 submit/tizen/20210817.055625 submit/tizen_6.5/20211028.163101 tizen_6.5.m2_release
authorJunsuChoi <jsuya.choi@samsung.com>
Wed, 4 Aug 2021 06:31:16 +0000 (15:31 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 5 Aug 2021 01:05:33 +0000 (10:05 +0900)
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

src/lottie/lottieitem_capi.cpp

index a4d8546f5d170b6725b15d8e8e38801385098e87..6f6fb950663a29ba3385c750c77e0b8b6637f4e8 100644 (file)
@@ -121,7 +121,7 @@ void renderer::Layer::buildLayerNode()
             auto        ptPtr = reinterpret_cast<const float *>(pts.data());
             auto        elmPtr = reinterpret_cast<const char *>(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);