ScaleValueFromRatioT: removed unnecessary check, amend f27af1b20.

This commit is contained in:
ocornut
2026-09-03 15:29:37 +02:00
parent 4dbb921b22
commit 1807b25b9a

View File

@@ -3085,7 +3085,7 @@ TYPE ImGui::ScaleValueFromRatioT(ImGuiDataType data_type, float t, TYPE v_min, T
{
result = ImLerp(v_min, v_max, t);
}
else if (t < 1.0)
else // t is already < 1.0 here
{
// - For integer values we want the clicking position to match the grab box so we round above
// This code is carefully tuned to work with large values (e.g. high ranges of U64) while preserving this property..