#include "wx/brush.h"
#include "wx/mgl/private.h"
-#include "wx/mgl/dcmemory.h"
+#include "wx/dcmemory.h"
// ---------------------------------------------------------------------------
if ( pix != NULL )
{
- mem.SelectObject(bitmap);
+ mem.SelectObjectAsSource(bitmap);
dc = mem.GetMGLDC();
wxCurrentDCSwitcher curDC(dc);
dc->beginPixel();
if ( mask && bitmap.GetMask() )
{
- mem.SelectObject(bitmap.GetMask()->GetBitmap());
+ mem.SelectObjectAsSource(bitmap.GetMask()->GetBitmap());
dc = mem.GetMGLDC();
wxCurrentDCSwitcher curDC(dc);
dc->beginPixel();