// Purpose:
// Author: Robert Roebling, Vaclav Slavik
// RCS-ID: $Id$
-// Copyright: (c) 1998 Robert Roebling, 2001 Vaclav Slavik
+// Copyright: (c) 1998 Robert Roebling,
+// 2001 SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "dcmemory.h"
#endif
void wxMemoryDC::SelectObject(const wxBitmap& bitmap)
{
- SetMGLDC(NULL, TRUE);
- m_selected = bitmap;
-
if ( bitmap.Ok() )
+ {
+ m_selected = bitmap;
SetMGLDC(m_selected.CreateTmpDC(), TRUE);
+ }
}
void wxMemoryDC::SetPen(const wxPen &pen)