diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-08-11 16:16:46 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2011-08-11 16:16:46 +0400 |
commit | 4af8276527bcbf3051fe66466844ee9d1585279e (patch) | |
tree | 6e6eece6ce5f8b27b700d8100841aba56e4ee5dc /src/filters/renderer/VideoRenderers | |
parent | 3f7915830474bb4a35689f833c9cbb9d959dcbf3 (diff) |
remove unneeded parentheses from return true/false statements
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3650 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/renderer/VideoRenderers')
8 files changed, 18 insertions, 18 deletions
diff --git a/src/filters/renderer/VideoRenderers/AllocatorCommon.cpp b/src/filters/renderer/VideoRenderers/AllocatorCommon.cpp index b2c30acdd..62c98d783 100644 --- a/src/filters/renderer/VideoRenderers/AllocatorCommon.cpp +++ b/src/filters/renderer/VideoRenderers/AllocatorCommon.cpp @@ -36,10 +36,10 @@ bool IsVMR9InGraph(IFilterGraph* pFG) {
BeginEnumFilters(pFG, pEF, pBF)
if(CComQIPtr<IVMRWindowlessControl9>(pBF)) {
- return(true);
+ return true;
}
EndEnumFilters
- return(false);
+ return false;
}
//
diff --git a/src/filters/renderer/VideoRenderers/AllocatorCommon7.cpp b/src/filters/renderer/VideoRenderers/AllocatorCommon7.cpp index 322d41921..02d41e59a 100644 --- a/src/filters/renderer/VideoRenderers/AllocatorCommon7.cpp +++ b/src/filters/renderer/VideoRenderers/AllocatorCommon7.cpp @@ -36,10 +36,10 @@ bool IsVMR7InGraph(IFilterGraph* pFG) {
BeginEnumFilters(pFG, pEF, pBF)
if(CComQIPtr<IVMRWindowlessControl>(pBF)) {
- return(true);
+ return true;
}
EndEnumFilters
- return(false);
+ return false;
}
using namespace DSObjects;
diff --git a/src/filters/renderer/VideoRenderers/DX7AllocatorPresenter.cpp b/src/filters/renderer/VideoRenderers/DX7AllocatorPresenter.cpp index 5dcab76af..e9dfdddfe 100644 --- a/src/filters/renderer/VideoRenderers/DX7AllocatorPresenter.cpp +++ b/src/filters/renderer/VideoRenderers/DX7AllocatorPresenter.cpp @@ -359,7 +359,7 @@ STDMETHODIMP_(bool) CDX7AllocatorPresenter::Paint(bool fAll) if(m_WindowRect.right <= m_WindowRect.left || m_WindowRect.bottom <= m_WindowRect.top
|| m_NativeVideoSize.cx <= 0 || m_NativeVideoSize.cy <= 0
|| !m_pPrimary || !m_pBackBuffer || !m_pVideoSurface) {
- return(false);
+ return false;
}
HRESULT hr;
@@ -415,7 +415,7 @@ STDMETHODIMP_(bool) CDX7AllocatorPresenter::Paint(bool fAll) return false;
}
- return(true);
+ return true;
}
void CDX7AllocatorPresenter::SendResetRequest()
diff --git a/src/filters/renderer/VideoRenderers/DX9AllocatorPresenter.cpp b/src/filters/renderer/VideoRenderers/DX9AllocatorPresenter.cpp index ddf9b77a2..192c42406 100644 --- a/src/filters/renderer/VideoRenderers/DX9AllocatorPresenter.cpp +++ b/src/filters/renderer/VideoRenderers/DX9AllocatorPresenter.cpp @@ -1521,7 +1521,7 @@ STDMETHODIMP_(bool) CDX9AllocatorPresenter::Paint(bool fAll) }
- return(false);
+ return false;
}
HRESULT hr;
@@ -1829,7 +1829,7 @@ STDMETHODIMP_(bool) CDX9AllocatorPresenter::Paint(bool fAll) //if (m_bIsEVR)
// TRACE("UNORDERED PAINT!!!!!!\n");
}
- return(true);
+ return true;
}
double CDX9AllocatorPresenter::GetFrameTime()
diff --git a/src/filters/renderer/VideoRenderers/DX9RenderingEngine.cpp b/src/filters/renderer/VideoRenderers/DX9RenderingEngine.cpp index 25337827b..dd8e45cff 100644 --- a/src/filters/renderer/VideoRenderers/DX9RenderingEngine.cpp +++ b/src/filters/renderer/VideoRenderers/DX9RenderingEngine.cpp @@ -1470,7 +1470,7 @@ bool CDX9RenderingEngine::ClipToSurface(IDirect3DSurface9* pSurface, CRect& s, C D3DSURFACE_DESC d3dsd;
ZeroMemory(&d3dsd, sizeof(d3dsd));
if (FAILED(pSurface->GetDesc(&d3dsd))) {
- return(false);
+ return false;
}
int w = d3dsd.Width, h = d3dsd.Height;
@@ -1481,7 +1481,7 @@ bool CDX9RenderingEngine::ClipToSurface(IDirect3DSurface9* pSurface, CRect& s, C || sw <= 0 || sh <= 0 || dw <= 0 || dh <= 0) {
s.SetRectEmpty();
d.SetRectEmpty();
- return(true);
+ return true;
}
if (d.right > w) {
@@ -1501,7 +1501,7 @@ bool CDX9RenderingEngine::ClipToSurface(IDirect3DSurface9* pSurface, CRect& s, C d.top = 0;
}
- return(true);
+ return true;
}
HRESULT CDX9RenderingEngine::DrawRect(DWORD _Color, DWORD _Alpha, const CRect &_Rect)
diff --git a/src/filters/renderer/VideoRenderers/SyncRenderer.cpp b/src/filters/renderer/VideoRenderers/SyncRenderer.cpp index 48b9739e8..6d6d35f00 100644 --- a/src/filters/renderer/VideoRenderers/SyncRenderer.cpp +++ b/src/filters/renderer/VideoRenderers/SyncRenderer.cpp @@ -1009,7 +1009,7 @@ bool CBaseAP::ClipToSurface(IDirect3DSurface9* pSurface, CRect& s, CRect& d) D3DSURFACE_DESC d3dsd;
ZeroMemory(&d3dsd, sizeof(d3dsd));
if(FAILED(pSurface->GetDesc(&d3dsd))) {
- return(false);
+ return false;
}
int w = d3dsd.Width, h = d3dsd.Height;
@@ -1020,7 +1020,7 @@ bool CBaseAP::ClipToSurface(IDirect3DSurface9* pSurface, CRect& s, CRect& d) || sw <= 0 || sh <= 0 || dw <= 0 || dh <= 0) {
s.SetRectEmpty();
d.SetRectEmpty();
- return(true);
+ return true;
}
if(d.right > w) {
s.right -= (d.right-w)*sw/dw;
@@ -1038,7 +1038,7 @@ bool CBaseAP::ClipToSurface(IDirect3DSurface9* pSurface, CRect& s, CRect& d) s.top += (0-d.top)*sh/dh;
d.top = 0;
}
- return(true);
+ return true;
}
HRESULT CBaseAP::InitResizers(float bicubicA, bool bNeedScreenSizeTexture)
@@ -1553,7 +1553,7 @@ STDMETHODIMP_(bool) CBaseAP::Paint(bool fAll) if(m_WindowRect.right <= m_WindowRect.left || m_WindowRect.bottom <= m_WindowRect.top
|| m_NativeVideoSize.cx <= 0 || m_NativeVideoSize.cy <= 0
|| !m_pVideoSurface) {
- return(false);
+ return false;
}
HRESULT hr;
@@ -1876,7 +1876,7 @@ STDMETHODIMP_(bool) CBaseAP::Paint(bool fAll) m_bPendingResetDevice = true;
SendResetRequest();
}
- return(true);
+ return true;
}
void CBaseAP::SendResetRequest()
diff --git a/src/filters/renderer/VideoRenderers/VMR7AllocatorPresenter.cpp b/src/filters/renderer/VideoRenderers/VMR7AllocatorPresenter.cpp index 13a60ed19..e629432bc 100644 --- a/src/filters/renderer/VideoRenderers/VMR7AllocatorPresenter.cpp +++ b/src/filters/renderer/VideoRenderers/VMR7AllocatorPresenter.cpp @@ -73,7 +73,7 @@ HRESULT CVMR7AllocatorPresenter::CreateDevice() if(m_pIVMRSurfAllocNotify) {
HMONITOR hMonitor = MonitorFromWindow(m_hWnd, MONITOR_DEFAULTTONEAREST);
if(FAILED(hr = m_pIVMRSurfAllocNotify->ChangeDDrawDevice(m_pDD, hMonitor))) {
- return hr; //return(false);
+ return hr; //return false;
}
}
diff --git a/src/filters/renderer/VideoRenderers/VMR9AllocatorPresenter.cpp b/src/filters/renderer/VideoRenderers/VMR9AllocatorPresenter.cpp index 3345fab6c..bbb99e9f2 100644 --- a/src/filters/renderer/VideoRenderers/VMR9AllocatorPresenter.cpp +++ b/src/filters/renderer/VideoRenderers/VMR9AllocatorPresenter.cpp @@ -66,7 +66,7 @@ HRESULT CVMR9AllocatorPresenter::CreateDevice(CString &_Error) HMONITOR hMonitor = m_pD3D->GetAdapterMonitor(m_CurrentAdapter);
if(FAILED(hr = m_pIVMRSurfAllocNotify->ChangeD3DDevice(m_pD3DDev, hMonitor))) {
_Error += L"m_pIVMRSurfAllocNotify->ChangeD3DDevice failed";
- return hr; //return(false);
+ return hr; //return false;
}
}
|