Repository navigation
Conversation
The game resolution choices were fixed 16:9 sizes (1280x720, 960x540). On a panel that is not 16:9 they stretch the game or letterbox it: the Lenovo Legion Tab Gen 3 is 2560x1600 (16:10). Read the built-in panel's preferred mode from DRM and, when it is not 16:9, offer 1920x1200, 1440x900, 1280x800 and 960x600-style sizes in its own aspect ratio ahead of the 16:9 ones. 16:9 panels keep the same list. Tested on the TB321FU: 1280x800 for a game, confirmed by Moonlight streaming from it at 1280x800.
enij90
force-pushed
the
pr/aspect-resolutions
branch
from
October 12, 2026 10:09
1aaa6e2 to
2a47c89
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The game resolution choices are fixed 16:9 sizes (1280x720, 960x540). On a panel that is not 16:9 they
stretch the game or letterbox it. This reads the built-in panel's preferred mode from DRM and, when it
is not 16:9, offers sizes in its own aspect ratio (heights 1200/900/800/600 below the native one) ahead
of the 16:9 entries. 16:9 panels get exactly the same list as before.
Tested on a Lenovo Legion Tab Gen 3 (2560x1600): 1920x1200, 1440x900, 1280x800 and 960x600 are
offered; a game set to 1280x800 runs at that size. Should also help 4:3 and square panels.
AI assistance
Claude Opus 5.5, with review and on-device testing by me.