From 46013ccb1a821b9992e72131b590e4f4a6290bcf Mon Sep 17 00:00:00 2001 From: Will Date: Sun, 12 Jan 2025 07:42:36 -0800 Subject: [PATCH] Fix open no join paths (#297) --- .../kotlin/com/littlekt/graphics/g2d/shape/PathDrawer.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/commonMain/kotlin/com/littlekt/graphics/g2d/shape/PathDrawer.kt b/core/src/commonMain/kotlin/com/littlekt/graphics/g2d/shape/PathDrawer.kt index 94436e891..ad623fb50 100644 --- a/core/src/commonMain/kotlin/com/littlekt/graphics/g2d/shape/PathDrawer.kt +++ b/core/src/commonMain/kotlin/com/littlekt/graphics/g2d/shape/PathDrawer.kt @@ -90,8 +90,8 @@ internal class PathDrawer(batchManager: BatchManager, private val lineDrawer: Li } if (!open) { lineDrawer.line( - path[path.size - 2], - path[path.size - 1], + path[size - 2], + path[size - 1], path[0], path[1], thickness,