Skip to content

Commit

Permalink
Try fixing filling arbitrary polygons
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualPokePlayer committed Jun 1, 2024
1 parent bc9f4af commit f13f69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BizHawk.Bizware.Graphics/Renderers/ImGui2DRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit f13f69b

Please sign in to comment.