From 530c6354edabdd19d45d883fee88793664170adf Mon Sep 17 00:00:00 2001 From: Casimir666 Date: Sat, 18 Apr 2009 17:39:19 +0000 Subject: Changed : merge with Beliyaal branch Added : support for madVR (new Video Renderer) git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1048 10f7b99b-c216-0410-bff0-8a66a9350fd8 --- src/ui/CmdUI/CmdUI.vcproj | 4 ++++ src/ui/CmdUI/stdafx.h | 1 + src/ui/LCDUI/LCDGfx.cpp | 6 ++++-- src/ui/LCDUI/LCDOutput.cpp | 4 +++- src/ui/LCDUI/LCDUI.vcproj | 4 ++++ src/ui/ResizableLib/ResizableDialog.cpp | 6 ------ src/ui/ResizableLib/ResizableGrip.cpp | 6 ------ src/ui/ResizableLib/ResizableLayout.cpp | 6 ------ src/ui/ResizableLib/ResizableLib.vcproj | 4 ++++ src/ui/ResizableLib/ResizableMinMax.cpp | 6 ------ src/ui/ResizableLib/ResizablePage.cpp | 6 ------ src/ui/ResizableLib/ResizableSheet.cpp | 6 ------ src/ui/ResizableLib/ResizableState.cpp | 6 ------ src/ui/ResizableLib/stdafx.h | 2 +- src/ui/TreePropSheet/PropPageFrame.cpp | 8 -------- src/ui/TreePropSheet/PropPageFrameDefault.cpp | 6 ------ src/ui/TreePropSheet/TreePropSheet.cpp | 11 ++--------- src/ui/TreePropSheet/TreePropSheet.vcproj | 4 ++++ src/ui/TreePropSheet/stdafx.h | 1 + src/ui/sizecbar/scbarg.cpp | 6 ------ src/ui/sizecbar/sizecbar.cpp | 8 +------- src/ui/sizecbar/sizecbar.vcproj | 4 ++++ src/ui/sizecbar/stdafx.h | 1 + 23 files changed, 34 insertions(+), 82 deletions(-) (limited to 'src/ui') diff --git a/src/ui/CmdUI/CmdUI.vcproj b/src/ui/CmdUI/CmdUI.vcproj index 86cac68ae..886ec952f 100644 --- a/src/ui/CmdUI/CmdUI.vcproj +++ b/src/ui/CmdUI/CmdUI.vcproj @@ -43,6 +43,7 @@ /> @@ -157,6 +159,7 @@ /> @@ -216,6 +219,7 @@ /> #include "LCDGfx.h" @@ -64,7 +66,7 @@ HRESULT CLCDGfx::Initialize(int nWidth, int nHeight) } int nBMISize = sizeof(BITMAPINFO) + 256 * sizeof(RGBQUAD); - m_pBitmapInfo = (BITMAPINFO *) new BYTE [nBMISize]; + m_pBitmapInfo = (BITMAPINFO *) DNew BYTE [nBMISize]; if(NULL == m_pBitmapInfo) { LCDUITRACE(_T("CLCDGfx::Initialize(): failed to allocate bitmap info.\n")); @@ -104,7 +106,7 @@ HRESULT CLCDGfx::Initialize(int nWidth, int nHeight) return E_FAIL; } - m_pLCDScreen = new lgLcdBitmap160x43x1; + m_pLCDScreen = DNew lgLcdBitmap160x43x1; if(NULL == m_pLCDScreen) { LCDUITRACE(_T("CLCDGfx::Initialize(): failed to allocate the lcd screen structure.\n")); diff --git a/src/ui/LCDUI/LCDOutput.cpp b/src/ui/LCDUI/LCDOutput.cpp index ec1a1396a..e9a0dcd27 100644 --- a/src/ui/LCDUI/LCDOutput.cpp +++ b/src/ui/LCDUI/LCDOutput.cpp @@ -10,6 +10,8 @@ // Copyright 2005 Logitech Inc. //************************************************************************ +#include "../../DSUtil/SharedInclude.h" +#include #include "LCDOutput.h" #pragma comment(lib, "lgLcd.lib") @@ -41,7 +43,7 @@ CLCDOutput::CLCDOutput() LGLCD_DEVICE_FAMILY_SPEAKERS_Z10; m_dwDeviceFamiliesSupportedReserved1 = 0; - m_pLastBitmap = new lgLcdBitmap160x43x1; + m_pLastBitmap = DNew lgLcdBitmap160x43x1; ClearBitmap(m_pLastBitmap); // Allow the first update to go through m_bPriorityHasChanged = TRUE; diff --git a/src/ui/LCDUI/LCDUI.vcproj b/src/ui/LCDUI/LCDUI.vcproj index 0d97f09f1..97299cf2f 100644 --- a/src/ui/LCDUI/LCDUI.vcproj +++ b/src/ui/LCDUI/LCDUI.vcproj @@ -42,6 +42,7 @@ /> @@ -100,6 +101,7 @@ /> diff --git a/src/ui/ResizableLib/ResizableDialog.cpp b/src/ui/ResizableLib/ResizableDialog.cpp index d61d4472b..af9d16b97 100644 --- a/src/ui/ResizableLib/ResizableDialog.cpp +++ b/src/ui/ResizableLib/ResizableDialog.cpp @@ -17,12 +17,6 @@ #include "stdafx.h" #include "ResizableDialog.h" -#ifdef _DEBUG -#define new DEBUG_NEW -#undef THIS_FILE -static char THIS_FILE[] = __FILE__; -#endif - ///////////////////////////////////////////////////////////////////////////// // CResizableDialog diff --git a/src/ui/ResizableLib/ResizableGrip.cpp b/src/ui/ResizableLib/ResizableGrip.cpp index f1464dbb7..d1551ce6b 100644 --- a/src/ui/ResizableLib/ResizableGrip.cpp +++ b/src/ui/ResizableLib/ResizableGrip.cpp @@ -17,12 +17,6 @@ #include "stdafx.h" #include "ResizableGrip.h" -#ifdef _DEBUG -#undef THIS_FILE -static char THIS_FILE[]=__FILE__; -#define new DEBUG_NEW -#endif - ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// diff --git a/src/ui/ResizableLib/ResizableLayout.cpp b/src/ui/ResizableLib/ResizableLayout.cpp index 8d7a4d7a9..750404b02 100644 --- a/src/ui/ResizableLib/ResizableLayout.cpp +++ b/src/ui/ResizableLib/ResizableLayout.cpp @@ -19,12 +19,6 @@ #include "ResizableLayout.h" #include "ResizableMsgSupport.inl" -#ifdef _DEBUG -#undef THIS_FILE -static char THIS_FILE[]=__FILE__; -#define new DEBUG_NEW -#endif - ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// diff --git a/src/ui/ResizableLib/ResizableLib.vcproj b/src/ui/ResizableLib/ResizableLib.vcproj index 2c7dd5ea5..efee6f810 100644 --- a/src/ui/ResizableLib/ResizableLib.vcproj +++ b/src/ui/ResizableLib/ResizableLib.vcproj @@ -43,6 +43,7 @@ /> @@ -157,6 +159,7 @@ /> @@ -216,6 +219,7 @@ /> #endif -#ifdef _DEBUG -#define new DEBUG_NEW -#undef THIS_FILE -static char THIS_FILE[] = __FILE__; -#endif - //------------------------------------------------------------------- // class CThemeLib //------------------------------------------------------------------- diff --git a/src/ui/TreePropSheet/TreePropSheet.cpp b/src/ui/TreePropSheet/TreePropSheet.cpp index 9c5c9f8ec..687226860 100644 --- a/src/ui/TreePropSheet/TreePropSheet.cpp +++ b/src/ui/TreePropSheet/TreePropSheet.cpp @@ -22,13 +22,6 @@ #include "TreePropSheet.h" #include "PropPageFrameDefault.h" -#ifdef _DEBUG -#define new DEBUG_NEW -#undef THIS_FILE -static char THIS_FILE[] = __FILE__; -#endif - - namespace TreePropSheet { @@ -253,13 +246,13 @@ CString CTreePropSheet::GenerateEmptyPageMessage(LPCTSTR lpszEmptyPageMessage, L CTreeCtrl* CTreePropSheet::CreatePageTreeObject() { - return new CTreeCtrl; + return DNew CTreeCtrl; } CPropPageFrame* CTreePropSheet::CreatePageFrame() { - return new CPropPageFrameDefault; + return DNew CPropPageFrameDefault; } diff --git a/src/ui/TreePropSheet/TreePropSheet.vcproj b/src/ui/TreePropSheet/TreePropSheet.vcproj index 28a2a840d..9125e1b61 100644 --- a/src/ui/TreePropSheet/TreePropSheet.vcproj +++ b/src/ui/TreePropSheet/TreePropSheet.vcproj @@ -43,6 +43,7 @@ /> @@ -157,6 +159,7 @@ /> @@ -216,6 +219,7 @@ /> @@ -157,6 +159,7 @@ /> @@ -216,6 +219,7 @@ />