diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2010-03-11 08:28:46 +0300 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2010-03-11 08:28:46 +0300 |
commit | 2e0a13ef04b43b2dce2c07d3e11b601cee73a35a (patch) | |
tree | 7f1b891abd1ead88a669c42c63ff411ce8beae6a /src/apps | |
parent | 10e513058a3affd595c9eb3b95d7e59d48bb0785 (diff) |
fix : rev. 1749, OSD draw bug;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1750 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps')
-rw-r--r-- | src/apps/mplayerc/VMROSD.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/apps/mplayerc/VMROSD.cpp b/src/apps/mplayerc/VMROSD.cpp index 0fc6e4afe..2e0300faf 100644 --- a/src/apps/mplayerc/VMROSD.cpp +++ b/src/apps/mplayerc/VMROSD.cpp @@ -43,7 +43,6 @@ CVMROSD::CVMROSD(void) m_penCursor.CreatePen(PS_SOLID, 4, m_Color[OSD_CURSOR]);
m_brushBack.CreateSolidBrush(m_Color[OSD_BACKGROUND]);
m_brushBar.CreateSolidBrush (m_Color[OSD_BAR]);
- m_MainFont.CreatePointFont (AfxGetAppSettings().nOSD_Size*10, AfxGetAppSettings().m_OSD_Font);
m_nMessagePos = OSD_NOMESSAGE;
m_bSeekBarVisible = false;
@@ -402,9 +401,6 @@ void CVMROSD::DisplayMessage (OSD_MESSAGEPOS nPos, LPCTSTR strMsg, int nDuration if (m_FontSize<10 || m_FontSize>26) m_FontSize=20;
if (OSD_Font == _T("")) m_OSD_Font = AfxGetAppSettings().m_OSD_Font;
else m_OSD_Font = OSD_Font;
-
- if(m_MainFont.GetSafeHandle())
- m_MainFont.DeleteObject();
m_MainFont.CreatePointFont(m_FontSize*10, m_OSD_Font);
m_MemDC.SelectObject(m_MainFont);
@@ -415,5 +411,7 @@ void CVMROSD::DisplayMessage (OSD_MESSAGEPOS nPos, LPCTSTR strMsg, int nDuration if (nDuration != -1) SetTimer(m_pWnd->m_hWnd, (long)this, nDuration, (TIMERPROC)TimerFunc);
}
Invalidate();
+ if(m_MainFont.GetSafeHandle())
+ m_MainFont.DeleteObject();
}
}
|