Default to 1024x768 for new users, not 640x480

640x480 is too small to render some dialogs correctly, and is much
smaller than even a small laptop screen.  Smaller resolutions are still
supported, if the user chooses to switch.
This commit is contained in:
Kp 2021-01-25 00:45:07 +00:00
parent 11d7344625
commit 4a8d7c7574
2 changed files with 6 additions and 4 deletions

View File

@ -128,8 +128,8 @@ int ReadConfigFile()
CGameCfg.GammaLevel = 0;
GameCfg.LastPlayer = {};
CGameCfg.LastMission = "";
GameCfg.ResolutionX = 640;
GameCfg.ResolutionY = 480;
GameCfg.ResolutionX = 1024;
GameCfg.ResolutionY = 768;
GameCfg.AspectX = 3;
GameCfg.AspectY = 4;
CGameCfg.WindowMode = false;

View File

@ -187,7 +187,9 @@ void reset_palette_add()
PaletteBlueAdd = 0;
}
screen_mode Game_screen_mode{640, 480};
constexpr screen_mode initial_small_game_screen_mode{320, 200};
constexpr screen_mode initial_large_game_screen_mode{1024, 768};
screen_mode Game_screen_mode = initial_large_game_screen_mode;
}
@ -211,7 +213,7 @@ void init_cockpit()
#if defined(DXX_BUILD_DESCENT_II)
int HiresGFXAvailable = !GameArg.GfxSkipHiresGFX;
#endif
auto full_screen_mode = HiresGFXAvailable ? screen_mode{640, 480} : screen_mode{320, 200};
auto full_screen_mode = HiresGFXAvailable ? initial_large_game_screen_mode : initial_small_game_screen_mode;
if (Game_screen_mode != full_screen_mode) {
PlayerCfg.CockpitMode[1] = CM_FULL_SCREEN;
}