mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 05:16:01 +00:00
fix(input): show the panel tabs under the controls-below-the-game bar (#2302)
* fix(input): show the panel tabs under the controls-below-the-game bar * fix(input): take the tab row out of the game, not the controls below it
This commit is contained in:
1 parent
a7c10e3f51
commit
ecd916d43f
3 files changed
+19
-5
No files matched your search
@@ -60,6 +60,13 @@ class SessionDisplayTest {
|
||||
assertEquals(864, SessionDisplay.unfoldedGameHeight(1920, 1080))
|
||||
}
|
||||
|
||||
@Test fun aTabRowUnderTheBarComesOutOfTheGameNotTheControls() {
|
||||
assertEquals(1376, SessionDisplay.unfoldedGameHeight(2448, 1848, 0))
|
||||
assertEquals(1240, SessionDisplay.unfoldedGameHeight(2448, 1848, 136))
|
||||
assertEquals(1376, SessionDisplay.unfoldedGameHeight(2448, 1848, -20))
|
||||
assertEquals(0, SessionDisplay.unfoldedGameHeight(200, 100, 500))
|
||||
}
|
||||
|
||||
private fun unfoldedWanted(
|
||||
enabled: Boolean = true,
|
||||
controller: Boolean = false,
|
||||
|
||||
Reference in new issue
Block a user