From a88418d244a1c5a73da9e989e54295251d1932ce Mon Sep 17 00:00:00 2001 From: Eric Mellino Date: Mon, 18 Jun 2018 20:24:54 -0700 Subject: [PATCH] Fix default stride in new PlotHistogram overload. --- src/ImGui.NET/ImGui.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImGui.NET/ImGui.cs b/src/ImGui.NET/ImGui.cs index 94a63ac..452d81c 100644 --- a/src/ImGui.NET/ImGui.cs +++ b/src/ImGui.NET/ImGui.cs @@ -329,7 +329,7 @@ namespace ImGuiNET float scaleMin = float.MaxValue, float scaleMax = float.MaxValue, Vector2 graphSize = default(Vector2), - int elementStride = sizeof(float)) + int elementStride = 1) { fixed (float* valuesBasePtr = values) {