#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();
bool operator == (const wxBrushRefData& data) const
{
return (m_style == data.m_style &&
- m_stipple.IsRefTo(&data.m_stipple) &&
+ m_stipple.IsSameAs(data.m_stipple) &&
m_colour == data.m_colour);
}