Use the portrait resolution in the controls-below layout and size the game area to the output aspect

This commit is contained in:
FX192 committed 2026-11-21 23:50:19 +03:00
1 parent 567181d05f
commit 0399c3e510
4 files changed
+20 -21

No files matched your search

@@ -55,6 +55,11 @@ class SessionDisplayTest {
@Test fun unfoldedControlsKeepTheGameSixteenByNineAcrossTheWidth() {
assertEquals(606, SessionDisplay.unfoldedGameHeight(1080, 1920))
assertEquals(606, SessionDisplay.unfoldedGameHeight(1080, 1920, 0, 16f / 9f))
assertEquals(606, SessionDisplay.unfoldedGameHeight(1080, 1920, 0, 2.2f))
assertEquals(1080, SessionDisplay.unfoldedGameHeight(1440, 3039, 192, 4f / 3f))
assertEquals(1080, SessionDisplay.unfoldedGameHeight(1440, 3039, 0, 4f / 3f))
assertEquals(2238, SessionDisplay.unfoldedGameHeight(1440, 3039, 0, 0.5f))
assertEquals(1376, SessionDisplay.unfoldedGameHeight(2448, 1848))
assertEquals(1038, SessionDisplay.unfoldedGameHeight(1848, 2448))
assertEquals(864, SessionDisplay.unfoldedGameHeight(1920, 1080))