mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
(d3d11) Disable DXGI's ALT+ENTER handling
This commit is contained in:
parent
5d3719df44
commit
9afa30af5e
@ -766,8 +766,19 @@ static bool d3d11_init_swapchain(d3d11_video_t* d3d11,
|
||||
&desc, (IDXGISwapChain**)&d3d11->swapChain)))
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef HAVE_WINDOW
|
||||
/* Don't let DXGI mess with the full screen state, because otherwise we end up with a mismatch
|
||||
* between the window size and the buffers. RetroArch only uses windowed mode (see above). */
|
||||
if (FAILED(dxgiFactory->lpVtbl->MakeWindowAssociation(dxgiFactory, desc.OutputWindow,
|
||||
DXGI_MWA_NO_ALT_ENTER)))
|
||||
{
|
||||
RARCH_ERR("[D3D11]: Failed to make disable DXGI ALT+ENTER handling.\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __WINRT__
|
||||
|
||||
dxgiFactory->lpVtbl->Release(dxgiFactory);
|
||||
adapter->lpVtbl->Release(adapter);
|
||||
dxgiDevice->lpVtbl->Release(dxgiDevice);
|
||||
|
Loading…
x
Reference in New Issue
Block a user