Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkinddragon <kinddragon@users.sourceforge.net>2010-04-27 03:26:42 +0400
committerkinddragon <kinddragon@users.sourceforge.net>2010-04-27 03:26:42 +0400
commit033e7f77ad41737dbb2ef08066a04af5ad05bc92 (patch)
treeb91de27724b0231be54737955c1ddc4030da46bb /src
parent0fb6236916750de563734411ffe8f7cfc9885ef4 (diff)
Fixed options "Remember last window position/size" (introduced in revision 1707)
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1812 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src')
-rw-r--r--src/apps/mplayerc/MainFrm.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/apps/mplayerc/MainFrm.cpp b/src/apps/mplayerc/MainFrm.cpp
index 855cda3ac..9adc8cbad 100644
--- a/src/apps/mplayerc/MainFrm.cpp
+++ b/src/apps/mplayerc/MainFrm.cpp
@@ -1070,13 +1070,13 @@ void CMainFrame::RecalcLayout(BOOL bNotify)
{
__super::RecalcLayout(bNotify);
- CRect r;
- GetWindowRect(&r);
- MINMAXINFO mmi;
- memset(&mmi, 0, sizeof(mmi));
- SendMessage(WM_GETMINMAXINFO, 0, (LPARAM)&mmi);
- r |= CRect(r.TopLeft(), CSize(r.Width(), mmi.ptMinTrackSize.y));
- MoveWindow(&r);
+ CRect r;
+ GetWindowRect(&r);
+ MINMAXINFO mmi;
+ memset(&mmi, 0, sizeof(mmi));
+ SendMessage(WM_GETMINMAXINFO, 0, (LPARAM)&mmi);
+ r |= CRect(r.TopLeft(), CSize(r.Width(), mmi.ptMinTrackSize.y));
+ MoveWindow(&r);
}
/////////////////////////////////////////////////////////////////////////////
@@ -1244,7 +1244,7 @@ void CMainFrame::OnSize(UINT nType, int cx, int cy)
ShowWindow(SW_SHOW);
}
- if(!m_fFullScreen)
+ if(IsWindowVisible() && !m_fFullScreen)
{
AppSettings& s = AfxGetAppSettings();
if(nType != SIZE_MAXIMIZED && nType != SIZE_MINIMIZED)