Conversation
This was referenced Jul 23, 2026
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.
Summary
This combines two related screen-layout improvements:
windowaspect-ratio calculation so two-screen layouts can fill the available window, addressing melonDS issue #2695.Credit and Authorship
The hybrid-ratio implementation was originally authored by
@KDOXG in melonDS PR #2332.
Their implementation remains a separate commit, with the original Git author attribution preserved.
Thanks also to @crashGG for testing the original implementation and providing substantial screen-layout feedback in the PR #2332 discussion.
Hybrid ratios
Adds View → Hybrid ratio with the following options:
Hybrid ratios use a separate configuration value, so changing the hybrid ratio
does not modify the regular screen-gap setting. The selected ratio persists
after restarting melonDS.
Fill-window aspect ratio
The existing
windowaspect-ratio option previously calculated each DSscreen's aspect from the complete emulator panel. This did not account for the
portion of the panel allocated to each screen. For example, two vertically
stacked screens still produced side bars because each screen only occupies half
of the panel height.
The updated calculation accounts for:
The existing inverse screen transformation continues to handle touchscreen
coordinates after stretching.
This portion addresses melonDS issue #2695.
Usage
To stretch two vertically stacked screens:
To configure the hybrid layout:
Testing
Tested on Windows using MSYS2 UCRT64, Qt 6, and GCC 15.2.
git diff --checkpasses.