fix(display): correct UI scaling and coordinate mapping across output resolutions #484
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!484
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-484"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@CristoDeveloper on GitHub · 2026-12-02 16:30 UTC · original
CristoDeveloper:fix/series-x-1080p-ui-scaling→main· +456 −42 · 16 files · 3 commits · draftProblem
In apps/victory/src/run.rs, run() overwrote VICTORY_DISPLAY_MODE with the scanout dimensions. dxgi::modes therefore enumerated 2560×1440 even when a Series X title needed its stock 3840×2160 UI canvas. State::native_frontend_viewport could then expand the interface viewport to 4K while leaving the scissor at scanout size. The HLE display module handles HDR and shell services; the mode list lives in victory-gpu.
There is a separate host input mismatch. Host::present_planes knows where the picture was drawn, including fullscreen bars, while the title window forwarded absolute client positions and confined the OS cursor to the whole client. Raw mouse movement drives an emulated stick. The title handles selection for that stick and for physical gamepads.
Change
The new launcher choice 1080p display: Series X (1440p scanout) and PowerShell option -Res 1080 retain the tested 1440p native profile. The runner stores the logical display separately and uses scanout dimensions for scene scale, tiled reservations and upscaler planning. A failed split request stops before a stock 4K fallback. The renderer retains the title's composite viewport when it uses a separate stock 4K canvas.
The presenter shares its picture rectangle with the presenting HWND. Absolute client mouse messages and screen/client point conversions use forward and inverse mappings through that rectangle. Win32 supplies the current client dimensions in the process's DPI context. Wheel coordinates stay in desktop space, and raw mouse counts and gamepad axes keep their existing behavior.
Previously the launcher's 1080p setting selected Series S. That saved option remains available. The new Series X preset uses DXGI stretch to present the 1440p scanout on a 1080p monitor. There is no additional 16:9 rendering pass or 4K host surface. DLSS Performance requests a 1280×720 scene. Frame generation uses its existing picture rectangle. No FPS or VRAM benchmark was run.
Verification
Remaining validation
On a 1080p display, compare the pause menu, minimap edges and waypoint placement at the centre and four corners using the new preset. Check fullscreen and borderless, a real pad and mouse. Coordinate round trips cannot establish how a title lays out its HUD or selects a stick-driven map waypoint. FSR 3 frame generation retains its existing full-buffer behavior on mismatched aspect ratios.
Related reports: #117, #137, #274.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.