From ef5cea0e0698bde451efc88eacdcda77105659fb Mon Sep 17 00:00:00 2001 From: Charles Pigott Date: Sun, 28 Feb 2021 21:27:53 +0000 Subject: Change: De-limit framerate window's framerate --- src/framerate_gui.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/framerate_gui.cpp') diff --git a/src/framerate_gui.cpp b/src/framerate_gui.cpp index 26a40c451..9bd5a2e8e 100644 --- a/src/framerate_gui.cpp +++ b/src/framerate_gui.cpp @@ -399,7 +399,6 @@ struct FramerateWindow : Window { { const double threshold_good = target * 0.95; const double threshold_bad = target * 2 / 3; - value = std::min(9999.99, value); this->value = (uint32)(value * 100); this->strid = (value > threshold_good) ? STR_FRAMERATE_FPS_GOOD : (value < threshold_bad) ? STR_FRAMERATE_FPS_BAD : STR_FRAMERATE_FPS_WARN; } @@ -408,7 +407,6 @@ struct FramerateWindow : Window { { const double threshold_good = target / 3; const double threshold_bad = target; - value = std::min(9999.99, value); this->value = (uint32)(value * 100); this->strid = (value < threshold_good) ? STR_FRAMERATE_MS_GOOD : (value > threshold_bad) ? STR_FRAMERATE_MS_BAD : STR_FRAMERATE_MS_WARN; } -- cgit v1.2.3-54-g00ecf