From 5486fc33a39d04f31ad5c0f956e4f72011af432f Mon Sep 17 00:00:00 2001 From: Soreepeong <3614868+Soreepeong@users.noreply.github.com> Date: Wed, 6 Aug 2025 20:23:06 +0900 Subject: [PATCH] Fix InputScalar step --- .../Custom/ImGui.InputScalar.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.InputScalar.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.InputScalar.cs index 7138d8a92..3c9ecb98b 100644 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.InputScalar.cs +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.InputScalar.cs @@ -270,8 +270,8 @@ public static unsafe partial class ImGui labelPtr, dataType, dataPtr, - stepPtr, - stepFastPtr, + step.CompareTo(T.Zero) > 0 ? stepPtr : null, + stepFast.CompareTo(T.Zero) > 0 ? stepFastPtr : null, formatPtr, flags) != 0; label.Dispose(); @@ -298,8 +298,8 @@ public static unsafe partial class ImGui dataType, dataPtr, data.Length, - stepPtr, - stepFastPtr, + step.CompareTo(T.Zero) > 0 ? stepPtr : null, + stepFast.CompareTo(T.Zero) > 0 ? stepFastPtr : null, formatPtr, flags) != 0; label.Dispose(); @@ -325,8 +325,8 @@ public static unsafe partial class ImGui labelPtr, GetImGuiDataType(), dataPtr, - stepPtr, - stepFastPtr, + step.CompareTo(T.Zero) > 0 ? stepPtr : null, + stepFast.CompareTo(T.Zero) > 0 ? stepFastPtr : null, formatPtr, flags) != 0; label.Dispose(); @@ -353,8 +353,8 @@ public static unsafe partial class ImGui GetImGuiDataType(), dataPtr, data.Length, - stepPtr, - stepFastPtr, + step.CompareTo(T.Zero) > 0 ? stepPtr : null, + stepFast.CompareTo(T.Zero) > 0 ? stepFastPtr : null, formatPtr, flags) != 0; label.Dispose();