Repository navigation
Conversation
New iOS setting "Bars around the picture" (DM_BAR_FILL): Black, Blurred picture (default) or Still image. A screen that is not 16:9 shows the game's picture with bars; they now show a dimmed, blurred copy of the picture or bar_background.jpg instead of black. The picture is never stretched or cropped. The fill is drawn in the Metal 4 present pass (present_encode_m4, nvn_mtl.m), so it applies to every game, NVN or Vulkan: the picture's valid rectangle is drawn into a small texture, blurred along x and y, and drawn dimmed over the whole canvas before the sharp picture. It also works through MetalFX (the scaled picture is what is blurred). A screenshot's present keeps black bars. The game view is the whole screen while a fill is on, and the touch mapping follows the picture as the present drew it (mtl_present_aspect). bar_background.jpg is an image generated with Gemini by the repository's author. Tested on an iPhone Duo with Super Mario Galaxy, closed and open, Standard and MetalFX upscaling; not tested on other devices or games. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2 of 3 tasks
2 tasks done
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.
What and why
A screen that is not 16:9 (the iPhone Duo, an iPad, a phone in some orientations) shows the game's picture with black bars. New iOS setting "Bars around the picture" (
DM_BAR_FILL): Black, Blurred picture (default) or Still image. The bars show a dimmed, blurred copy of the picture, orbar_background.jpg, instead of black. The picture is never stretched or cropped.The fill is drawn in the Metal 4 present pass (
present_encode_m4,nvn_mtl.m), so it applies to every game, NVN or Vulkan: the picture's valid rectangle is drawn into a small texture, blurred along x and y, and drawn dimmed over the whole canvas before the sharp picture. It also works through MetalFX (the scaled picture is what is blurred). A screenshot's present keeps black bars. The game view is the whole screen while a fill is on, and the touch mapping follows the picture as the present drew it (mtl_present_aspect).bar_background.jpgis an image generated with Gemini by the repository's author.The branch is rebased on
mainas of 2026-10-30. One conflict with the TV output change infront_ios.mwas resolved by keeping both: the game view is the whole screen while a fill is on, andfit_16_9otherwise, with the TV check unchanged.Checked
dm/tools/tests/test_launcher_settings.pypasses; CI was green on the first commit. The rebased branch was built and run on the iPhone Duo.scripts/regress.py check --games: not run. The change is in the Metal 4 present pass, which every game uses; with the setting on Black the picture path is unchanged, and the default (Blurred picture) is what was played.Docs
docs/settings.md,docs/env_switches.tsvanddm/games/settings.tsvlistDM_BAR_FILL