fix input scalar not working the same way as normal imgui code (#2343)

This commit is contained in:
wolfcomp 2025-08-06 18:01:58 +02:00 committed by GitHub
parent 69b4ed941f
commit 2cd5c5bc68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -270,8 +270,8 @@ public static unsafe partial class ImGui
labelPtr, labelPtr,
dataType, dataType,
dataPtr, dataPtr,
stepPtr, step > T.Zero ? stepPtr : null,
stepFastPtr, stepFast > T.Zero ? stepFastPtr : null,
formatPtr, formatPtr,
flags) != 0; flags) != 0;
label.Dispose(); label.Dispose();
@ -298,8 +298,8 @@ public static unsafe partial class ImGui
dataType, dataType,
dataPtr, dataPtr,
data.Length, data.Length,
stepPtr, step > T.Zero ? stepPtr : null,
stepFastPtr, stepFast > T.Zero ? stepFastPtr : null,
formatPtr, formatPtr,
flags) != 0; flags) != 0;
label.Dispose(); label.Dispose();
@ -325,8 +325,8 @@ public static unsafe partial class ImGui
labelPtr, labelPtr,
GetImGuiDataType<T>(), GetImGuiDataType<T>(),
dataPtr, dataPtr,
stepPtr, step > T.Zero ? stepPtr : null,
stepFastPtr, stepFast > T.Zero ? stepFastPtr : null,
formatPtr, formatPtr,
flags) != 0; flags) != 0;
label.Dispose(); label.Dispose();
@ -353,8 +353,8 @@ public static unsafe partial class ImGui
GetImGuiDataType<T>(), GetImGuiDataType<T>(),
dataPtr, dataPtr,
data.Length, data.Length,
stepPtr, step > T.Zero ? stepPtr : null,
stepFastPtr, stepFast > T.Zero ? stepFastPtr : null,
formatPtr, formatPtr,
flags) != 0; flags) != 0;
label.Dispose(); label.Dispose();