Minimum screen resolution is 1280 x 720.

This commit is contained in:
Steve 2018-12-14 08:09:58 +00:00
parent cf390f0b00
commit 80f840c4f0
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
"group" : "options",
"type" : "WT_SELECT",
"text" : "Window Size",
"options" : "640 x 360;1280 x 720;1600 x 900;1920 x 1080;2560 x 1440;3840 x 2160;",
"options" : "1280 x 720;1600 x 900;1920 x 1080;2560 x 1440;3840 x 2160;",
"x" : -1,
"y" : 175,
"w" : 400,

View File

@ -215,9 +215,9 @@ static void loadConfig(int argc, char *argv[])
handleCommandLineConfig(argc, argv);
/* don't go higher than 8K or lower than 320 x 240 */
app.winWidth = MIN(MAX(app.winWidth, 320), 7680);
app.winHeight = MIN(MAX(app.winHeight, 240), 4320);
/* don't go higher than 8K or lower than 1280 x 720 */
app.winWidth = MIN(MAX(app.winWidth, 1280), 7680);
app.winHeight = MIN(MAX(app.winHeight, 720), 4320);
/* so that the player doesn't get confused if this is a new game */
saveConfig();