/////////////////////////////////////////////////////////////////////////////
-// Name: dc.cpp
+// Name: src/motif/dc.cpp
// Purpose: wxDC class
// Author: Julian Smart
// Modified by:
#include "wx/wxprec.h"
#include "wx/dc.h"
-#include "wx/dcmemory.h"
-#include "wx/defs.h"
- IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
+#ifndef WX_PRECOMP
+ #include "wx/dcmemory.h"
+#endif
+
+IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
//-----------------------------------------------------------------------------
// wxDC
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
m_scaleX = m_logicalScaleX * m_userScaleX;
m_scaleY = m_logicalScaleY * m_userScaleY;
}
-