// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "dcmemory.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
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)