loader: interface by its root size below 4K (fixes phone screen, nearby missions, map icons) #49
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/49"
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?
Imported from ReTerryDavis/ReVIctory. Originally posted by GiovanniFadanelli on 2026-12-04T16:53:38Z.
Summary
Fixes the interface below 4K output (e.g.
VICTORY_OUTPUT=2560x1440): with thefwuilayout scale from36ea0e5the HUD was the right size, but the phone screen's content was drawn in the top-left two thirds of the phone (the rest black) and the nearby-missions markers (hold D-pad down) were out of place.Change
crates/victory-loader/src/resolution.rs, no new switch, Series S mode (own interface) unchanged:2160 / height(3840x2160 at 2560x1440). The title then lays its whole interface out as at 4K, draws it into a target of that size and scales that target to the output itself, so every part stays in proportion, including the phone and the 3D-anchored markers. Thefwuiscale patches are not written in that case; the pause-map cursor patches still are.+0x18instead of+0x30) so the map is not rebuilt every update.Every site is compared byte for byte before it is written, as the other resolution patches are. Unit tests check the new displacements.
Test plan
cargo clippy --locked -p victory-loader --all-targets -- -D warningscargo build --release --locked -p victorycargo test --locked -p victory-loader -- --test-threads=1🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.