diff --git a/similar/main/game.cpp b/similar/main/game.cpp index 71c007b75..1d4bd833b 100644 --- a/similar/main/game.cpp +++ b/similar/main/game.cpp @@ -197,9 +197,6 @@ void reset_palette_add() PaletteBlueAdd = 0; } -#if !DXX_USE_OGL -constexpr screen_mode initial_small_game_screen_mode{320, 200}; -#endif constexpr screen_mode initial_large_game_screen_mode{1024, 768}; screen_mode Game_screen_mode = initial_large_game_screen_mode; @@ -267,7 +264,9 @@ void init_cockpit() #if defined(DXX_BUILD_DESCENT_II) int HiresGFXAvailable = !GameArg.GfxSkipHiresGFX; #endif - auto full_screen_mode = HiresGFXAvailable ? initial_large_game_screen_mode : initial_small_game_screen_mode; + const auto full_screen_mode = HiresGFXAvailable + ? screen_mode /* large_game_screen_mode */{640, 480} + : screen_mode /* small_game_screen_mode */{320, 200}; if (Game_screen_mode != full_screen_mode) { PlayerCfg.CockpitMode[1] = cockpit_mode_t::full_screen; }