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
diff options
context:
space:
mode:
authorjonasno <jonasno@users.sourceforge.net>2010-02-21 21:50:41 +0300
committerjonasno <jonasno@users.sourceforge.net>2010-02-21 21:50:41 +0300
commit3244957f4563575d22bf109de27a703558611b19 (patch)
tree749080f5503fe3fd31e28587000b60b90aacf995 /src/filters/BaseClasses/winutil.cpp
parentc7a41c0086a8bfcd07530779645d98c80039bd84 (diff)
Merged VSFilterMod rev20, only 64 bit code enabled for the time being
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1688 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/BaseClasses/winutil.cpp')
-rw-r--r--src/filters/BaseClasses/winutil.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/filters/BaseClasses/winutil.cpp b/src/filters/BaseClasses/winutil.cpp
index 6653f4570..e5a63cc02 100644
--- a/src/filters/BaseClasses/winutil.cpp
+++ b/src/filters/BaseClasses/winutil.cpp
@@ -31,7 +31,7 @@ CBaseWindow::CBaseWindow(BOOL bDoGetDC, bool bDoPostToDestroy) :
m_MemoryDC(NULL),
m_hPalette(NULL),
m_bBackground(FALSE),
-#ifdef DEBUG
+#ifdef _DEBUG
m_bRealizing(FALSE),
#endif
m_bNoRealize(FALSE),
@@ -94,7 +94,7 @@ HRESULT CBaseWindow::PrepareWindow()
// Derived classes MUST call DoneWithWindow in their destructors so
// that no messages arrive after the derived class constructor ends
-#ifdef DEBUG
+#ifdef _DEBUG
CBaseWindow::~CBaseWindow()
{
ASSERT(m_hwnd == NULL);
@@ -449,14 +449,14 @@ LRESULT CALLBACK WndProc(HWND hwnd, // Window handle
}
// Set the window LONG to be the object who created us
-#ifdef DEBUG
+#ifdef _DEBUG
SetLastError(0); // because of the way SetWindowLong works
#endif
LONG_PTR rc = _SetWindowLongPtr(hwnd, (DWORD) 0, pBaseWindow);
-#ifdef DEBUG
+#ifdef _DEBUG
if (0 == rc) {
// SetWindowLong MIGHT have failed. (Read the docs which admit
// that it is awkward to work out if you have had an error.)
@@ -650,7 +650,7 @@ HRESULT CBaseWindow::DoCreateWindow()
// The base class provides some default handling and calls DefWindowProc
-LRESULT CBaseWindow::OnReceiveMessage(HWND hwnd, // Window handle
+INT_PTR CBaseWindow::OnReceiveMessage(HWND hwnd, // Window handle
UINT uMsg, // Message ID
WPARAM wParam, // First parameter
LPARAM lParam) // Other parameter
@@ -782,11 +782,11 @@ LRESULT CBaseWindow::OnPaletteChange(HWND hwnd,UINT Message)
}
// Avoid recursion with multiple graphs in the same app
-#ifdef DEBUG
+#ifdef _DEBUG
m_bRealizing = TRUE;
#endif
DoRealisePalette(Message != WM_QUERYNEWPALETTE);
-#ifdef DEBUG
+#ifdef _DEBUG
m_bRealizing = FALSE;
#endif
@@ -869,7 +869,7 @@ HDC CBaseWindow::GetMemoryHDC()
}
-#ifdef DEBUG
+#ifdef _DEBUG
HPALETTE CBaseWindow::GetPalette()
{
// The palette lock should always be held when accessing
@@ -940,7 +940,7 @@ CDrawImage::CDrawImage(__inout CBaseWindow *pBaseWindow) :
void CDrawImage::DisplaySampleTimes(IMediaSample *pSample)
{
-#ifdef DEBUG
+#ifdef _DEBUG
//
// Only allow the "annoying" time messages if the users has turned the
// logging "way up"
@@ -1106,7 +1106,7 @@ void CDrawImage::FastRender(IMediaSample *pMediaSample)
// draw the times into the offscreen device context however that actually
// writes the text into the image data buffer which may not be writable
- #ifdef DEBUG
+ #ifdef _DEBUG
DisplaySampleTimes(pMediaSample);
#endif
@@ -1201,7 +1201,7 @@ void CDrawImage::SlowRender(IMediaSample *pMediaSample)
// the screen, unfortunately this has considerable performance penalties
// and also means that this code is not executed when compiled retail
- #ifdef DEBUG
+ #ifdef _DEBUG
DisplaySampleTimes(pMediaSample);
#endif
}
@@ -1460,7 +1460,7 @@ CImageAllocator::CImageAllocator(__inout CBaseFilter *pFilter,
// Check our DIB buffers have been released
-#ifdef DEBUG
+#ifdef _DEBUG
CImageAllocator::~CImageAllocator()
{
ASSERT(m_bCommitted == FALSE);
@@ -1783,7 +1783,7 @@ CImagePalette::CImagePalette(__inout CBaseFilter *pBaseFilter,
// Destructor
-#ifdef DEBUG
+#ifdef _DEBUG
CImagePalette::~CImagePalette()
{
ASSERT(m_hPalette == NULL);