Make the VIctory game window borderless by default #1723

Closed
gmankab wants to merge 1 commit from upstream-pr/1724 into main
gmankab commented 2026-11-24 21:23:49 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by gmankab on 2026-11-24T21:23:49Z.


image

window border looks very not pretty on linux wayland

commit removes it

<!-- greyfinch-sync:Marvisak/VIctory:issue:6591702286 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1724). Originally posted by [gmankab](https://github.com/gmankab) on 2026-11-24T21:23:49Z. --- <img width="2880" height="1800" alt="image" src="https://github.com/user-attachments/assets/fa41c8ce-d88b-4663-a4f1-d1a7f1a9eea0" /> window border looks very not pretty on linux wayland commit removes it
DenRakEiw commented 2026-11-24 21:28:22 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T21:26:21Z.

Review: APPROVED


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).

<!-- greyfinch-sync:Marvisak/VIctory:review:6047681866 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1724#pullrequestreview-6047681866). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-24T21:26:21Z. **Review:** APPROVED --- 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 commented 2026-11-24 22:02:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T21:36:42Z.

Review: COMMENTED


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?

<!-- greyfinch-sync:Marvisak/VIctory:review:6047807894 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1724#pullrequestreview-6047807894). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T21:36:42Z. **Review:** COMMENTED --- 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?
upstream-sync closed this pull request 2026-11-24 23:05:07 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!1723
No description provided.