diff options
-rw-r--r-- | xbmc/windowing/windows/WinSystemWin32DX.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xbmc/windowing/windows/WinSystemWin32DX.cpp b/xbmc/windowing/windows/WinSystemWin32DX.cpp index c2692275c8..9ca881220e 100644 --- a/xbmc/windowing/windows/WinSystemWin32DX.cpp +++ b/xbmc/windowing/windows/WinSystemWin32DX.cpp @@ -168,11 +168,12 @@ void CWinSystemWin32DX::NotifyAppFocusChange(bool bGaining) { CRenderSystemDX::m_useWindowedDX = !bGaining; CRenderSystemDX::SetFullScreenInternal(); - CRenderSystemDX::CreateWindowSizeDependentResources(); + if (bGaining) + CRenderSystemDX::CreateWindowSizeDependentResources(); // minimize window on lost focus if (!bGaining) - ShowWindow(m_hWnd, SW_SHOWMINIMIZED); + ShowWindow(m_hWnd, SW_FORCEMINIMIZE); } } |