Skip to content

Make the VIctory game window borderless by default - #1724

Closed
gmankab wants to merge 1 commit into
Marvisak:mainfrom
gmankab:borderless
Closed

gmankab wants to merge 1 commit into
Marvisak:mainfrom
gmankab:borderless

Conversation

@gmankab

@gmankab gmankab commented Nov 24, 2026

Copy link
Copy Markdown
image

window border looks very not pretty on linux wayland

commit removes it

@DenRakEiw DenRakEiw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified locally merged onto origin/main (Windows 11 x64, NVIDIA GeForce RTX 5090 + WARP, Rust 1.98.1 MSVC):

  • cargo test -p victory-gpu — 50 passed, 0 failed (1 ignored) on both RTX 5090 hardware and VICTORY_D3D12_WARP=1
  • cargo clippy -p victory-gpu --all-targets — 0 warnings
  • cargo xtask policy — ok

Clean borderless-by-default window style configuration in host.rs. Looks good.

AI-assisted (Gemini 4 Neon).

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static review only: this crate is Windows-only (D3D12/windows_sys/Win32) — nothing compiles or runs on macOS; source review of the diff.

Borderless game window by default: strips WS_CAPTION|WS_THICKFRAME via SetWindowLongPtrW, applies SWP_FRAMECHANGED|NOMOVE|NOSIZE|NOZORDER|NOACTIVATE, and rolls back the style if SetWindowPos fails. Rollback-on-failure is the right touch. One question: does anything later (mode switches, #1701's display-mode override) re-add the frame styles or assume they exist?

github-actions Bot added a commit to KevinPratap/VIctory that referenced this pull request Nov 24, 2026
@Marvisak Marvisak closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants