From 0aa716e0a0472a0e75c8b7a2e50b39ba0e458759 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sat, 4 Dec 2021 14:10:28 +0800 Subject: [PATCH] optimize emptyRect symbol --- Runtime/Internal/Utility/ChartDrawer.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Runtime/Internal/Utility/ChartDrawer.cs b/Runtime/Internal/Utility/ChartDrawer.cs index aab54fb7..21b79ffe 100644 --- a/Runtime/Internal/Utility/ChartDrawer.cs +++ b/Runtime/Internal/Utility/ChartDrawer.cs @@ -65,9 +65,7 @@ namespace XCharts } else { - UGL.DrawRoundRectangle(vh, pos, symbolSize, symbolSize, color, color, 0, cornerRadius, true); - UGL.DrawRoundRectangle(vh, pos, symbolSize - tickness, symbolSize - tickness, - centerFillColor, centerFillColor, 0, cornerRadius, true); + UGL.DrawBorder(vh, pos, symbolSize / 2, symbolSize / 2, tickness, color); } break; case SerieSymbolType.Triangle: