From f13f69b1ed47f84f5e81e0f014ad7dcb5e5296b0 Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Sat, 1 Jun 2024 15:16:20 -0700 Subject: [PATCH] Try fixing filling arbitrary polygons --- src/BizHawk.Bizware.Graphics/Renderers/ImGui2DRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BizHawk.Bizware.Graphics/Renderers/ImGui2DRenderer.cs b/src/BizHawk.Bizware.Graphics/Renderers/ImGui2DRenderer.cs index 394d293d4ca..5a25ad7b8fa 100644 --- a/src/BizHawk.Bizware.Graphics/Renderers/ImGui2DRenderer.cs +++ b/src/BizHawk.Bizware.Graphics/Renderers/ImGui2DRenderer.cs @@ -529,7 +529,7 @@ public unsafe void FillPolygon(Color color, Point[] points) var vectorPoints = Array.ConvertAll(points, static p => p.ToVector()); fixed (Vector2* p = vectorPoints) { - _imGuiDrawList.AddConvexPolyFilled( + _imGuiDrawList.AddConcavePolyFilled( points: ref *p, num_points: vectorPoints.Length, col: (uint)color.ToArgb());