From 80f840c4f0b578ab4b33f14a5f9accaf2161a3f7 Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 14 Dec 2018 08:09:58 +0000 Subject: [PATCH] Minimum screen resolution is 1280 x 720. --- data/widgets/options.json | 2 +- src/system/init.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/widgets/options.json b/data/widgets/options.json index 2684ae7..ea431c4 100644 --- a/data/widgets/options.json +++ b/data/widgets/options.json @@ -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, diff --git a/src/system/init.c b/src/system/init.c index 7ef8acb..3d7ccfa 100644 --- a/src/system/init.c +++ b/src/system/init.c @@ -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();