Skip to content

Commit a5653a0

Browse files
authored
Fix thresholds range in GUI
1 parent 1e993b5 commit a5653a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -959,11 +959,11 @@ int main(int argc, char *argv[])
959959
if (ImGui::TreeNodeEx("Advanced", ImGuiTreeNodeFlags_NoTreePushOnOpen))
960960
{
961961
if (ImGui::InputInt("Increase threshold", &resIncreaseThreshold, 1))
962-
resIncreaseThreshold = std::clamp(resIncreaseThreshold, 0, 100);
962+
resIncreaseThreshold = std::max(resIncreaseThreshold, 0);
963963
addTooltip("Percentage of the target frametime at which to stop increasing resolution.");
964964

965965
if (ImGui::InputInt("Decrease threshold", &resDecreaseThreshold, 1))
966-
resDecreaseThreshold = std::clamp(resDecreaseThreshold, 0, 100);
966+
resDecreaseThreshold = std::max(resDecreaseThreshold, 0);
967967
addTooltip("Percentage of the target frametime at which to start decreasing resolution.");
968968

969969
ImGui::InputInt("Increase minimum", &resIncreaseMin, 1);

0 commit comments

Comments
 (0)