mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06: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:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user