aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Fedchin <afedchin@ruswizards.com>2016-03-20 00:21:04 +0300
committerAnton Fedchin <afedchin@ruswizards.com>2016-03-21 13:25:58 +0300
commita505943f9b572b093a2a24e05f278557fc49ea3a (patch)
tree7e2916a5e6dd49acd1a4a628a702cf4908efbc2c
parentb3f1f9fe3ddfd0565d9916339b7481cf15375140 (diff)
[WinSystemWin32DX] Avoid unneeded resize buffers when minimized in FSE mode.
-rw-r--r--xbmc/windowing/windows/WinSystemWin32DX.cpp5
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);
}
}