mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-25 07:46:01 +00:00
Use the portrait resolution in the controls-below layout and size the game area to the output aspect
This commit is contained in:
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))
|
||||
|
||||
Reference in new issue
Block a user