Lay the UI out for any screen shape from 4:3 to 32:9, and offer 4:3 and phone sizes (#632, #1453)

A game resolution whose shape the fifteen listed sizes did not cover (13:6 on a phone streamed to, 4:3) drew 16:9 with bars: neither the setup's Shapes step (installer/screens.py shape_size) nor the game's background generator (runtime/romfs.c romfs_folders_prepare) made a layout for it, though tools/ultrawide_layout.py handles any aspect ratio and runtime/romfs.c overlay_init already loads a folder of the exact size. cfg.c cfg_shape_size and screens.py shape_size now give an unlisted shape from 4:3 to 32:9 its own size, so both make romfs-patches-<w>x<h> for it; a display of an unlisted shape still keeps the 1920x1080 default and gets no folder. The list gains 4:3 (1440x1080, 1600x1200, 2048x1536, 2732x2048) and 19.5:9 and 20:9 phone sizes (2340x1080, 3120x1440, 2400x1080, 3200x1440), in the menu's game resolution row too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
itaskaev2andClaude Opus 5.5 committed 2026-11-24 22:50:55 +01:00
1 parent 6205940caf
commit 13b4b0ca9b
8 files changed
+85 -33

No files matched your search

+8 -5
View File
@@ -571,15 +571,18 @@ static void folders_retry(const char *id, int need) {
}
// The game resolution (resolution.c): 16:9 sizes from its smallest, 1280x720 (for weak GPUs), up, the common 21:9 and
// 32:9 monitor sizes, the 16:10 screens of the Steam Deck, handhelds and laptops and the 3:2 screens of laptops and
// tablets (Surface, Framework; the camera and the HUD follow
// another shape, resolution.c res_init; the installer lays the HUD out for each, installer/steps.py ASPECT_SIZES), and
// the current value when it is another size.
// 32:9 monitor sizes, the 16:10 screens of the Steam Deck, handhelds and laptops, the 3:2 screens of laptops and
// tablets (Surface, Framework), the 4:3 screens of CRT monitors and iPads and the 19.5:9 and 20:9 screens of phones a
// game is streamed to (the camera and the HUD follow another shape, resolution.c res_init; the installer lays the HUD
// out for each, installer/screens.py ASPECT_SIZES), and the current value when it is another size: any shape from 4:3
// to 32:9 gets a layout of its own (cfg.c cfg_shape_size).
static void row_output_res(void) {
static const char *const vals[] = {"1280x720", "1600x900", "1920x1080", "2560x1440", "3200x1800", "3840x2160",
"2560x1080", "3440x1440", "3840x1600", "5120x2160", "3840x1080", "5120x1440",
"1280x800", "1680x1050", "1920x1200", "2560x1600",
"1920x1280", "2160x1440", "2256x1504", "2880x1920", "3000x2000"};
"1920x1280", "2160x1440", "2256x1504", "2880x1920", "3000x2000",
"1440x1080", "1600x1200", "2048x1536", "2732x2048",
"2340x1080", "3120x1440", "2400x1080", "3200x1440"};
enum { N = sizeof vals / sizeof *vals };
char shown[N][32];
const char *names[N];