From 605662ca87613bfcfaf13045fd26c5c7487742d8 Mon Sep 17 00:00:00 2001 From: Valiantsin Dzerakh Date: Sat, 31 Oct 2026 00:25:05 +0300 Subject: [PATCH] Offer 1280x720 and 1600x900 as game resolutions in the menu The game resolution row started at 1920x1080 although resolution.c accepts sizes from 1280x720, so weak GPUs and integrated graphics had to edit totk.ini to draw the game smaller. A 1280x720 run on 1.4.3 renders the field with a 1067x600 scene and an intact interface. Co-Authored-By: Claude Opus 5.5 --- runtime/ui/menu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/ui/menu.cpp b/runtime/ui/menu.cpp index 7d52baa9..162894d5 100644 --- a/runtime/ui/menu.cpp +++ b/runtime/ui/menu.cpp @@ -414,10 +414,10 @@ static void row_window_size(void) { opt_choice_list("TOTK_WINDOW_SIZE", UI_MENU_WINDOW_SIZE, pv, pn, n, UI_MENU_WINDOW_SIZE_DESC); } -// The game resolution (resolution.c): 16:9 sizes from the game's own 1920x1080 up, and the current value when it is -// another size. +// The game resolution (resolution.c): 16:9 sizes from its smallest, 1280x720 (for weak GPUs), up, and the current value +// when it is another size. static void row_output_res(void) { - static const char *const vals[] = {"1920x1080", "2560x1440", "3200x1800", "3840x2160"}; + static const char *const vals[] = {"1280x720", "1600x900", "1920x1080", "2560x1440", "3200x1800", "3840x2160"}; enum { N = sizeof vals / sizeof *vals }; char shown[N][32]; const char *names[N];