diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2010-03-15 15:01:33 +0300 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2010-03-15 15:01:33 +0300 |
commit | c12dcb811f0c016c1c6b6999a0125885205eb9f9 (patch) | |
tree | fa098e88d9f6a97c5d6ff521b9726d1dac483c1f /src/apps | |
parent | 03728edef20219faccc98949c59379cae80f6adc (diff) |
fix : incorrect position(desktop) after fullscreen when play multiple files on multi-monitor system;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1753 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps')
-rw-r--r-- | src/apps/mplayerc/MainFrm.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/apps/mplayerc/MainFrm.cpp b/src/apps/mplayerc/MainFrm.cpp index 4d9a9730a..0adf9db97 100644 --- a/src/apps/mplayerc/MainFrm.cpp +++ b/src/apps/mplayerc/MainFrm.cpp @@ -655,6 +655,8 @@ int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) m_bToggleShader = AfxGetAppSettings().m_bToggleShader;
m_bToggleShaderScreenSpace = AfxGetAppSettings().m_bToggleShaderScreenSpace;
+
+ m_lastWindowRect.SetRect(0,0,0,0);
m_strTitle.Format (L"%s - v%s", ResStr(IDR_MAINFRAME), AfxGetMyApp()->m_strVersion);
SetWindowText(m_strTitle);
@@ -10303,7 +10305,9 @@ bool CMainFrame::OpenMediaPrivate(CAutoPtr<OpenMediaData> pOMD) }
if (AfxGetAppSettings().AutoChangeFullscrRes.bEnabled && m_fFullScreen) AutoChangeMonitorMode();
- if (m_fFullScreen && AfxGetAppSettings().fRememberZoomLevel) m_fFirstFSAfterLaunchOnFS = true;
+ if (m_fFullScreen && AfxGetAppSettings().fRememberZoomLevel && (
+ (m_lastWindowRect.left == 0) && (m_lastWindowRect.top == 0) &&
+ (m_lastWindowRect.Width() == 0) && (m_lastWindowRect.Height() == 0))) m_fFirstFSAfterLaunchOnFS = true;
m_LastOpenFile = pOMD->title;
|