diff options
| author | Alfredo Peres <alfredoperes0310@gmail.com> | 2026-11-29 12:32:17 -0300 |
|---|---|---|
| committer | Alfredo Peres <alfredoperes0310@gmail.com> | 2026-11-30 13:38:40 -0300 |
| commit | d985409b61fa86a5eb1c45c52417d938cf639b41 (patch) | |
| tree | acfabd603f016f864150bd76f79f30280d6cd18b /runtime/test/code_hooks_test.cpp | |
| parent | 08e42a516097e5a645c5728a88177c7d08d9093e (diff) | |
d3d12: Alt+Enter switches to borderless fullscreen instead of freezing the picture (D3D12-BORDERLESS-FULLSCREEN)
Alt+Enter went to DXGI's own exclusive fullscreen, for which nothing here makes the buffers
again: the picture froze and the screen stayed black. The presenter now turns DXGI's Alt+Enter
off (MakeWindowAssociation with DXGI_MWA_NO_ALT_ENTER, on the swap chain's own factory), and
the title window's procedure in lifecycle.rs handles the key itself:
- Alt+Enter takes the title's window without its frame over the whole of its monitor, and the
next one gives back its frame and its place. A held key's repeats do nothing, and the
character it makes (a beep) does not reach the title.
- Going back gives back only the frame and edge styles, so a window made borderless before it
was first shown stays shown.
- LEONIDA_FULLSCREEN=1 (the launchers' -Fullscreen, or FULLSCREEN (NO BORDER) in the F1 menu)
makes the window borderless from the start.
The swap chain is not made again: its picture is scaled to the window as before
(LEONIDA_PRESENT_SCALE). Two tests send the keys to a window of their own.
The idea is VIctory's (trustno1-coder/VIctory-NVIDIA has a borderless fullscreen); the code is
written for leonida-hle.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/code_hooks_test.cpp')
0 files changed, 0 insertions, 0 deletions