X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/336b8a4257b2723804ed6aa5a033e86b7edb8dad..d3e780ecdf69233c872d51216eedbc64a1b6db25:/src/msw/dcmemory.cpp diff --git a/src/msw/dcmemory.cpp b/src/msw/dcmemory.cpp index 7a2de900bf..3427da41a1 100644 --- a/src/msw/dcmemory.cpp +++ b/src/msw/dcmemory.cpp @@ -5,7 +5,7 @@ // Modified by: // Created: 01/02/97 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem +// Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dcmemory.h" #endif @@ -104,7 +104,9 @@ void wxMemoryDC::SelectObject(const wxBitmap& bitmap) ::SelectObject(GetHdc(), (HBITMAP) m_oldBitmap); if ( m_selectedBitmap.Ok() ) { +#ifdef __WXDEBUG__ m_selectedBitmap.SetSelectedInto(NULL); +#endif m_selectedBitmap = wxNullBitmap; } } @@ -119,7 +121,9 @@ void wxMemoryDC::SelectObject(const wxBitmap& bitmap) if ( !hBmp ) return; +#ifdef __WXDEBUG__ m_selectedBitmap.SetSelectedInto(this); +#endif hBmp = (WXHBITMAP)::SelectObject(GetHdc(), (HBITMAP)hBmp); if ( !hBmp )