Renderer: Restore exclusive mode after focus has been regained.

This commit is contained in:
Jules Blok 2014-07-10 22:43:15 +02:00
parent 5f04e9c526
commit 5837b35add
1 changed files with 9 additions and 1 deletions

View File

@ -939,7 +939,15 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbHeight,const EFBRectangl
const bool windowResized = CheckForResize();
const bool fullscreen = g_ActiveConfig.bFullscreen;
const bool fsChanged = s_LastFS != fullscreen;
bool fsChanged = s_LastFS != fullscreen;
BOOL fsState;
if (SUCCEEDED(D3D::swapchain->GetFullscreenState(&fsState, nullptr)) && !!fsState != fullscreen)
{
// We should be in fullscreen, but we're not. Restore it when we regain focus.
fsChanged = Host_RendererHasFocus();
}
bool xfbchanged = false;