mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-22 05:05:56 +00:00
Give the camera and interface the output's shape on 1.2.1, so 16:10 and 21:9 are not stretched.
The aspect patch set (recomp/patches-v121.txt) makes the world camera's DefaultAspect parameter default, the two camera-viewport updates that divide a 16:9 rectangle, and the five loads of the 2D canvas size read the patch page. resolution.c writes the output's aspect and the canvas factors there (wider than 16:9 the canvas grows in x, narrower in y) and switches the set on when the game resolution is not 16:9. The sites are those of Fruithapje21's TOTK-Ultrawide 1.2.1 patch (GPL-3.0, read for behaviour); a heap scan of the live projections confirmed the four world cameras take the new aspect. The interface keeps its 16:9 layout in the middle of the canvas: the per-layout edits that move it to the screen's edges are not done. A version without the set (1.4.3 for now) draws the largest 16:9 size inside the wanted one, letterboxed. The Steam Deck profile now draws the screen's own 1280x800, and the menu offers 16:10 and 21:9 game resolutions.
This commit is contained in:
1 parent
2f78585b4c
commit
f3ab1b0e76
7 files changed
+74
-17
No files matched your search
+3
-2
@@ -412,8 +412,9 @@ static void row_window_size(void) {
|
||||
// The game resolution (resolution.c): 16:9 sizes from the game's own 1920x1080 up, and the current value when it is
|
||||
// another size.
|
||||
static void row_output_res(void) {
|
||||
// 1280x720: the Steam Deck's (letterboxed in its 1280x800 screen, TOTK_PICTURE_FIT)
|
||||
static const char *const vals[] = {"1280x720", "1600x900", "1920x1080", "2560x1440", "3200x1800", "3840x2160"};
|
||||
// 16:9, 16:10 (the Steam Deck's 1280x800) and 21:9 sizes: the aspect patch gives the game the output's shape
|
||||
static const char *const vals[] = {"1280x720", "1280x800", "1600x900", "1920x1080", "1920x1200",
|
||||
"2560x1080", "2560x1440", "3440x1440", "3200x1800", "3840x2160"};
|
||||
enum { N = sizeof vals / sizeof *vals };
|
||||
char shown[N][32];
|
||||
const char *names[N];
|
||||
|
||||
Reference in new issue
Block a user