Repository navigation
feat(frontend): optional smooth menu fonts - #60
Open
raistlen007 wants to merge 6 commits into
Open
raistlen007 wants to merge 6 commits into
raistlen007 wants to merge 6 commits into
Conversation
Keep XwaRemasterAssets_Create's signature and set the option right after creating the assets. Drop the cleanup on a failed 1x atlas, which AeronFontAtlas_InitRgba8 leaves empty, and leave the 4x scale as it was.
Contributor
Author
|
Merged current main and resolved the conflict with the new Target Readout row (row count is 14 now, and my row moved to button ID 72 so the two don't share hover state). Also tidied up: XwaRemasterAssets_Create keeps its original signature, and I removed some redundant cleanup code. |
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.
Adds an optional Smooth Menu Fonts setting to OpenXWA Video Options, using the renderer's existing linear texture filtering.
The original pixelated appearance is preserved by default.
Changes:
Adds a Smooth Menu Fonts: Off / On option between MSAA and Motion Blur in Video Options.
Off (default): Retains the existing 4× nearest-neighbor font upscaling.
On: Uses the original-resolution font textures with the renderer's existing linear filtering.
Loads both font atlases and switches between them immediately, without requiring a restart.
Saves the preference to video.smooth_menu_fonts in config.yaml.
Implementation:
Both versions of the original frontend fonts are loaded into GPU memory. Switching the setting selects the appropriate atlas without regenerating textures or introducing additional shaders.
The implementation uses the existing font loading, rendering, and video-options infrastructure.