Keep the presenter windowed when Alt+Enter is pressed #149
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/149"
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 avatarmanz/VIctory-7900XTX. Originally posted by feanorsun on 2026-11-26T07:39:07Z.
Refs #91
The reporter observed that Alt+Enter froze the picture on an RX 9070 while audio continued, and identified staying windowed as an acceptable outcome.
After creating the swap chain, the presenter now calls
MakeWindowAssociation(hwnd, DXGI_MWA_NO_ALT_ENTER)on the same DXGI factory. The HWND is the one passed toCreateSwapChainForHwnd, whether it came from the title or from the fallback window. An association failure propagates through the presenter's existing error path.Windows verification
cargo check --locked -j 1 -p victory-gpu --libandgit diff --checkpassed.Host::presenterto create a swap chain for one visible 640 × 240 window on an NVIDIA GeForce RTX 5080 Laptop GPU. It presented changing colors, displayed the frame count in the title, and dispatched a manually entered Alt+Enter normally.AMD reporter retest
The original game cutscene on the RX 9070 with Adrenalin 26.11.2 still needs confirmation. During the cutscene, press Alt+Enter once and check that the window stays windowed and the picture continues moving alongside the audio.
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.