From 634bb45dc46025ca595ea31b9be96a212e13a25b Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Sat, 4 Dec 2021 14:10:28 +0800 Subject: [PATCH] optimize emptyRect symbol --- Assets/XCharts/Runtime/Internal/Utility/ChartDrawer.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Assets/XCharts/Runtime/Internal/Utility/ChartDrawer.cs b/Assets/XCharts/Runtime/Internal/Utility/ChartDrawer.cs index aab54fb7..21b79ffe 100644 --- a/Assets/XCharts/Runtime/Internal/Utility/ChartDrawer.cs +++ b/Assets/XCharts/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: