mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Exit exclusive fullscreen when the stop confirmation is shown.
Also have the renderer remember its own fullscreen state. This is done to prevent a case where we exit exclusive fullscreen through the configuration and a focus shift at the same time. In this case the renderer would fail to detect that the fullscreen state was changed.
This commit is contained in:
parent
36ea1890c8
commit
009b4dd376
5 changed files with 28 additions and 13 deletions
|
@ -946,10 +946,10 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbHeight,const EFBRectangl
|
|||
BOOL fullscreen_state;
|
||||
if (SUCCEEDED(D3D::swapchain->GetFullscreenState(&fullscreen_state, nullptr)))
|
||||
{
|
||||
if (!!fullscreen_state != fullscreen)
|
||||
if (!!fullscreen_state != fullscreen && Host_RendererHasFocus())
|
||||
{
|
||||
// We should be in fullscreen, but we're not. Restore it when we regain focus.
|
||||
fullscreen_changed = Host_RendererHasFocus();
|
||||
fullscreen_changed = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue