# HG changeset patch # User sean <43609023+spnda@users.noreply.github.com> # Date 2021-03-10 12:37:35 # Node ID 9aa898fd565d0b57784936f731954ebb2772bc52 # Parent 4bfcbf422a4d10322991358b01041a12f36d7c69 Codechange: Misleading function name for selecting refresh rate (#8836) Co-authored-by: pnda <43609023+ThePNDA@users.noreply.github.com> diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -144,7 +144,7 @@ std::set _refresh_rates = { 30, 60, * 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);