diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2021-02-28 21:27:53 +0000 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2021-03-01 21:55:51 +0000 |
commit | ef5cea0e0698bde451efc88eacdcda77105659fb (patch) | |
tree | 73189bf3eda7d94a237123c8ef77ea112ed64b22 | |
parent | cd4c8ecbf341e141e35b28980cdc5c7a2c04b1ca (diff) | |
download | openttd-ef5cea0e0698bde451efc88eacdcda77105659fb.tar.xz |
Change: De-limit framerate window's framerate
-rw-r--r-- | src/framerate_gui.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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; } |