feat: stretch 16:9 games to screens wider than 16:9 too (#1558)

* feat: stretch 16:9 games to screens wider than 16:9 too

* fix: don't offer 16:9 game fit while the session follows the screen
This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-10-25 12:37:47 -04:00
1 parent 411fda343a
commit 10fe5c5f77
5 files changed
+20 -7

No files matched your search

@@ -96,7 +96,10 @@ class SessionDisplayTest {
@Test fun gameStretchAvailabilityMatchesTheRuntimeIncludingRounding() {
assertTrue(SessionDisplay.canStretch16x9(960 to 720))
assertFalse(SessionDisplay.canStretch16x9(1280 to 720))
assertFalse(SessionDisplay.canStretch16x9(1600 to 720))
assertTrue(SessionDisplay.canStretch16x9(1600 to 720))
assertTrue(SessionDisplay.canStretch16x9(2400 to 1080))
assertFalse(SessionDisplay.canStretch16x9(1920 to 1080))
assertFalse(SessionDisplay.canStretch16x9(1366 to 768))
val wide = SessionDisplay.resolve(1440 to 1080, 0, SessionPrefs.SHAPE_WIDE)
assertFalse(SessionDisplay.canStretch16x9(wide))
}