#include "wx/wxprec.h"
#include "wx/dc.h"
-#include "wx/dcmemory.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/dcmemory.h"
+#endif
IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
wxCHECK_RET( bitmap.Ok(), "invalid bitmap" );
wxMemoryDC memDC;
- memDC.SelectObject(bitmap);
+ memDC.SelectObjectAsSource(bitmap);
#if 0
// Not sure if we need this. The mask should leave the masked areas as per