From 9d042ba4e8c0ee43a173134aa755317b5f3e3629 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sat, 11 Jun 2011 14:01:01 +0000 Subject: legacy branch: merge r3126-r3207 from trunk git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/branches/legacy@3208 10f7b99b-c216-0410-bff0-8a66a9350fd8 --- src/apps/mplayerc/BaseGraph.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/apps/mplayerc/BaseGraph.cpp') diff --git a/src/apps/mplayerc/BaseGraph.cpp b/src/apps/mplayerc/BaseGraph.cpp index 3f3c27c3c..e806700d9 100644 --- a/src/apps/mplayerc/BaseGraph.cpp +++ b/src/apps/mplayerc/BaseGraph.cpp @@ -2,7 +2,7 @@ * $Id$ * * (C) 2003-2006 Gabest - * (C) 2006-2010 see AUTHORS + * (C) 2006-2011 see AUTHORS * * This file is part of mplayerc. * @@ -32,7 +32,7 @@ BOOL CPlayerWindow::PreCreateWindow(CREATESTRUCT& cs) { - if(!CWnd::PreCreateWindow(cs)) { + if (!CWnd::PreCreateWindow(cs)) { return FALSE; } @@ -49,8 +49,8 @@ END_MESSAGE_MAP() BOOL CPlayerWindow::OnEraseBkgnd(CDC* pDC) { - for(CWnd* pChild = GetWindow(GW_CHILD); pChild; pChild = pChild->GetNextWindow()) { - if(!pChild->IsWindowVisible()) { + for (CWnd* pChild = GetWindow(GW_CHILD); pChild; pChild = pChild->GetNextWindow()) { + if (!pChild->IsWindowVisible()) { continue; } @@ -103,7 +103,7 @@ STDMETHODIMP CBaseGraph::NonDelegatingQueryInterface(REFIID riid, void** ppv) void CBaseGraph::ClearMessageQueue() { - while(!m_msgqueue.IsEmpty()) { + while (!m_msgqueue.IsEmpty()) { GMSG msg = m_msgqueue.RemoveHead(); FreeEventParams(msg.m_lEventCode, msg.m_lParam1, msg.m_lParam2); } @@ -112,7 +112,7 @@ void CBaseGraph::ClearMessageQueue() void CBaseGraph::NotifyEvent(long lEventCode, LONG_PTR lParam1, LONG_PTR lParam2) { - if(!m_hNotifyWnd) { + if (!m_hNotifyWnd) { return; } @@ -305,18 +305,18 @@ STDMETHODIMP CBaseGraph::GetEventHandle(OAEVENT* hEvent) } STDMETHODIMP CBaseGraph::GetEvent(long* lEventCode, LONG_PTR* lParam1, LONG_PTR* lParam2, long msTimeout) { - if(m_msgqueue.IsEmpty()) { + if (m_msgqueue.IsEmpty()) { return E_FAIL; } GMSG msg = m_msgqueue.RemoveHead(); - if(lEventCode) { + if (lEventCode) { *lEventCode = msg.m_lEventCode; } - if(lParam1) { + if (lParam1) { *lParam1 = msg.m_lParam1; } - if(lParam2) { + if (lParam2) { *lParam2 = msg.m_lParam2; } @@ -336,8 +336,8 @@ STDMETHODIMP CBaseGraph::RestoreDefaultHandling(long lEvCode) } STDMETHODIMP CBaseGraph::FreeEventParams(long lEvCode, LONG_PTR lParam1, LONG_PTR lParam2) { - if(EC_BG_ERROR == lEvCode) { - if(lParam1) { + if (EC_BG_ERROR == lEvCode) { + if (lParam1) { CoTaskMemFree((void*)lParam1); } } @@ -352,7 +352,7 @@ STDMETHODIMP CBaseGraph::SetNotifyWindow(OAHWND hwnd, long lMsg, LONG_PTR lInsta m_lNotifyMsg = lMsg; m_lNotifyInstData = lInstanceData; - if(!IsWindow((HWND)m_hNotifyWnd)) { + if (!IsWindow((HWND)m_hNotifyWnd)) { m_hNotifyWnd = NULL; return E_FAIL; } @@ -377,7 +377,7 @@ STDMETHODIMP CBaseGraph::CheckCapabilities(DWORD* pCapabilities) { CheckPointer(pCapabilities, E_POINTER); - if(*pCapabilities == 0) { + if (*pCapabilities == 0) { return S_OK; } -- cgit v1.2.3