aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Blake <oak99sky@yahoo.co.uk>2020-07-15 10:27:12 +0100
committerGitHub <noreply@github.com>2020-07-15 10:27:12 +0100
commitf70d3dd75de0ae0f81e1cf80c36e50761e0131b5 (patch)
treeff92fb8a0eea5e4808a43a520bf2f867e6f1b9a3
parent30c5402f00b1de4f7c6344b5b5d93429f0066383 (diff)
parent1a780d5a74d7f9919c9f8ad7e42eda9f0d83cb88 (diff)
Merge pull request #18095 from kiwiploetze/fix-win-dual-monitor-behaviour
[Windows] fix for dual monitor problem
-rw-r--r--xbmc/windowing/windows/WinSystemWin32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/windowing/windows/WinSystemWin32.cpp b/xbmc/windowing/windows/WinSystemWin32.cpp
index ed01be8afb..dd1dc7f424 100644
--- a/xbmc/windowing/windows/WinSystemWin32.cpp
+++ b/xbmc/windowing/windows/WinSystemWin32.cpp
@@ -363,7 +363,7 @@ void CWinSystemWin32::AdjustWindow(bool forceResize)
if (!m_ValidWindowedPosition || hMon == nullptr || hMon != hMon2)
{
- RECT newScreenRect = ScreenRect(m_hMonitor);
+ RECT newScreenRect = ScreenRect(hMon2);
rc.left = m_nLeft = newScreenRect.left + ((newScreenRect.right - newScreenRect.left) / 2) - (m_nWidth / 2);
rc.top = m_nTop = newScreenRect.top + ((newScreenRect.bottom - newScreenRect.top) / 2) - (m_nHeight / 2);
rc.right = m_nLeft + m_nWidth;