Window: VICTORY_BORDERLESS=1 covers the primary display without border or title bar #311
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!311
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-311"
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?
@Sr-0w on GitHub · 2026-11-26 15:44 UTC · original
window/borderless→main· +114 −12 · 3 files · 1 commits · closed without mergingWhat
VICTORY_BORDERLESS=1opens the window as windowed borderless on the primary display:WS_POPUP, no border, no title bar, sized to the display's rectangle (MonitorFromPoint+GetMonitorInfoW). It is off by default. Without it the window is exactly as before (WS_OVERLAPPEDWINDOWaround the client size).scripts\play.ps1 -Borderlesssets it, and the README lists it under "Other switches".window_placedecides the style and rectangle. It is unit-tested for both cases: a display given (including a display at negative desktop coordinates, left of the primary one), and none.Why
Until now the only window was the bordered one, so playing full screen meant resizing it by hand.
Tested
cargo test -p victory-gpu window_place: 2 passed.cargo clippy -p victory-gpu --all-targets --locked -- -D warningsis clean for this change. On main it stops earlier onwatch.rs:3626(unnecessary_mut_passed), which is not from this PR (see #280, fixed by #169/#241).-RayTracing: the same style and rectangle applied to the running window (WS_POPUP, display rectangle) give a borderless full-screen picture. There is no change in frame rate, since the render size stays the same and only the present is stretched. The switch's own build has not been run in the world yet; I will add that run here.🤖 Generated with Claude Code
Pull request closed