X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7520f3da332d64a676b6f7d27a56004fabf2db36..c3b8bf3fb5c59e1f044e3a4f7a2da3c477df4bff:/src/motif/dc.cpp?ds=sidebyside diff --git a/src/motif/dc.cpp b/src/motif/dc.cpp index c6bd10e425..939442bd32 100644 --- a/src/motif/dc.cpp +++ b/src/motif/dc.cpp @@ -13,7 +13,10 @@ #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) @@ -46,7 +49,7 @@ void wxDC::DoDrawBitmap( const wxBitmap& bitmap, wxCoord x, wxCoord y, bool useM 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