summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsean <43609023+spnda@users.noreply.github.com>2021-03-10 13:37:35 +0100
committerGitHub <noreply@github.com>2021-03-10 12:37:35 +0000
commit160a5f2fdda791f24b6b8ed990ac0285f193cd5a (patch)
tree17101f3d74800e9f6060347bcb49d6983e213fe5 /src
parent35a228f78f5b64f57e93ce8d108cec98d805b469 (diff)
downloadopenttd-160a5f2fdda791f24b6b8ed990ac0285f193cd5a.tar.xz
Codechange: Misleading function name for selecting refresh rate (#8836)
Co-authored-by: pnda <43609023+ThePNDA@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/settings_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index ffa08e798..914ef933f 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -144,7 +144,7 @@ std::set<int> _refresh_rates = { 30, 60, 75, 90, 100, 120, 144, 240 };
* Add the refresh rate from the config and the refresh rates from all the monitors to
* our list of refresh rates shown in the GUI.
*/
-static void AddRefreshRatesAndSelect()
+static void AddCustomRefreshRates()
{
/* Add the refresh rate as selected in the config. */
_refresh_rates.insert(_settings_client.gui.refresh_rate);
@@ -163,7 +163,7 @@ struct GameOptionsWindow : Window {
this->opt = &GetGameSettings();
this->reload = false;
- AddRefreshRatesAndSelect();
+ AddCustomRefreshRates();
this->InitNested(WN_GAME_OPTIONS_GAME_OPTIONS);
this->OnInvalidateData(0);