Default the game resolution to the display's shape

This commit is contained in:
Wintego committed 2026-11-05 08:31:30 +03:00
1 parent 101132a6c8
commit 11d404930d
5 files changed
+55 -2

No files matched your search

+6
View File
@@ -993,6 +993,12 @@ int plat_mem_read(uint64_t addr, void *out, size_t n) {
return process_vm_readv(getpid(), &local, 1, &remote, 1, 0) == (ssize_t)n;
}
// Not known before the SDL window exists; the Steam Deck has its own profile (cfg.c)
int plat_screen_size(int *w, int *h) {
(void)w, (void)h;
return 0;
}
int plat_mem_readable(uint64_t addr, uint64_t n) {
uint8_t b;
uint64_t end = addr + (n ? n : 1);