fix: skia loses the fill type after a rewind (#9741) 8f5a30ac7c

Co-authored-by: Maxwell Talbot <talbot.maxwell@gmail.com>
This commit is contained in:
mjtalbot
2025-05-21 08:37:31 +00:00
parent 379a0c71f6
commit 0961629f0b
2 changed files with 7 additions and 2 deletions

View File

@@ -1 +1 @@
3ab91e096d9d27a5b8f4cc50737a70eef25d2558
8f5a30ac7c58feaf1cf9fe21bdd507d304cfc591

View File

@@ -126,7 +126,12 @@ void SkiaRenderPath::fillRule(FillRule value)
m_Path.setFillType(ToSkia::convert(value));
}
void SkiaRenderPath::rewind() { m_Path.rewind(); }
void SkiaRenderPath::rewind()
{
auto fillType = m_Path.getFillType();
m_Path.rewind();
m_Path.setFillType(fillType);
}
void SkiaRenderPath::addRenderPath(RenderPath* path, const Mat2D& transform)
{
LITE_RTTI_CAST_OR_RETURN(skPath, SkiaRenderPath*, path);