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
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);