Preserve the picture aspect in bordered windows #3378
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3378
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3378"
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?
@Kitrae on GitHub · 2026-11-29 22:28 UTC · original
Kitrae:fix/windowed-client-aspect→main· +106 −1 · 1 files · 1 commits · openFixes #3366.
What it changes
The title asks for its picture dimensions when it creates the window. Win32 uses those dimensions for the outer window, so the caption and borders make the game area proportionally wider. DXGI then scales the 16:9 swap chain to that area.
Measure the actual frame after creating the window and reserve its space before fitting the client area. The monitor work area and
VICTORY_WINDOW_MAXbound the outer window. The swap chain keeps its existing dimensions.How it was tested
WS_OVERLAPPEDWINDOWrequested at 1920×1080 had a 1904×1041 client area before accounting for the frame.cargo test --locked -p victory-hle --lib modules::lifecycle::tests -- --test-threads=1. The tests used synthetic windows and geometry.git diff --checkand the staged asset-policy check passed.Checked for overlap
AI-assisted contribution using OpenAI Codex.
@andrewpozdnakov7-jpg on GitHub · 2026-11-30 07:07 UTC · original
I reproduced the aspect mismatch through Victory's actual Win32 window creation path on Windows. The fixture creates an invisible bordered window with
VICTORY_FULLSCREEN=0, requests 1920x1080, then measures both rectangles. The current releasev2026.11.29.05and main are both41adb551. The original #3378 patch at7cdc884applied cleanly as3cce0cf.VICTORY_WINDOW_MAX=900x500Both current-release runs fail the 16:9 assertion. Both patched runs preserve 16:9 within one pixel and respect the outer bounds. On Windows with Rust 1.98.1/MSVC, the lifecycle suite passed 15 tests on main and 17 with #3378, including both tests added by the PR. The fixture needs no title data.
@jim139129, could you repeat your bordered-window setup on
v2026.11.29.05and on a build with #3378 applied, using the same DLSS and frame-generation settings? A live client rectangle and whether the image still looks stretched are enough. This verifies the initial window size. Original reportAI-assisted with OpenAI Codex.
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.