mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-15 15:19:52 +00:00
Cleanup: Remove unused GameOptionsWindowNumber::GameSettings window number (#15617)
Remove associated redundant SetWindowDirty calls
This commit is contained in:
committed by
GitHub
parent
b13cf794bc
commit
f2aeed9cb9
@@ -17,7 +17,7 @@ GSWindow.WN_GAME_OPTIONS_GS <- GSWindow.GameOptionsWindowNumber.GS;
|
||||
GSWindow.WN_GAME_OPTIONS_ABOUT <- GSWindow.GameOptionsWindowNumber.About;
|
||||
GSWindow.WN_GAME_OPTIONS_NEWGRF_STATE <- GSWindow.GameOptionsWindowNumber.NewGRFState;
|
||||
GSWindow.WN_GAME_OPTIONS_GAME_OPTIONS <- GSWindow.GameOptionsWindowNumber.GameOptions;
|
||||
GSWindow.WN_GAME_OPTIONS_GAME_SETTINGS <- GSWindow.GameOptionsWindowNumber.GameSettings;
|
||||
GSWindow.WN_GAME_OPTIONS_GAME_SETTINGS <- GSWindow.GameOptionsWindowNumber.GameOptions;
|
||||
GSWindow.WN_QUERY_STRING <- GSWindow.QueryStringWindowNumber.Default;
|
||||
GSWindow.WN_QUERY_STRING_SIGN <- GSWindow.QueryStringWindowNumber.Sign;
|
||||
GSWindow.WN_CONFIRM_POPUP_QUERY <- GSWindow.ConfirmPopupQueryWindowNumber.Default;
|
||||
|
||||
@@ -1641,14 +1641,12 @@ public:
|
||||
case WID_BS_DRAG_SIGNALS_DENSITY_DECREASE:
|
||||
if (_settings_client.gui.drag_signals_density > 1) {
|
||||
_settings_client.gui.drag_signals_density--;
|
||||
SetWindowDirty(WindowClass::GameOptions, GameOptionsWindowNumber::GameSettings);
|
||||
}
|
||||
break;
|
||||
|
||||
case WID_BS_DRAG_SIGNALS_DENSITY_INCREASE:
|
||||
if (_settings_client.gui.drag_signals_density < 20) {
|
||||
_settings_client.gui.drag_signals_density++;
|
||||
SetWindowDirty(WindowClass::GameOptions, GameOptionsWindowNumber::GameSettings);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
@@ -30,7 +30,6 @@ enum class GameOptionsWindowNumber : uint8_t {
|
||||
About, ///< About window.
|
||||
NewGRFState, ///< NewGRF settings.
|
||||
GameOptions, ///< Game options.
|
||||
GameSettings, ///< Game settings.
|
||||
};
|
||||
|
||||
/** Window numbers for QueryString windows. */
|
||||
@@ -643,7 +642,6 @@ enum class WindowClass : uint16_t {
|
||||
* - #GameOptionsWindowNumber::About = #AboutWidgets
|
||||
* - #GameOptionsWindowNumber::NewGRFState = #NewGRFStateWidgets
|
||||
* - #GameOptionsWindowNumber::GameOptions = #GameOptionsWidgets
|
||||
* - #GameOptionsWindowNumber::GameSettings = #GameSettingsWidgets
|
||||
*/
|
||||
GameOptions,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user