X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/432efcb004c8a7f4997acab1aa044c78226c36bb..562e60a0f2ef165ab75c999eb8002d547c3585aa:/src/motif/dcmemory.cpp diff --git a/src/motif/dcmemory.cpp b/src/motif/dcmemory.cpp index 789dac864d..81f4da0b3e 100644 --- a/src/motif/dcmemory.cpp +++ b/src/motif/dcmemory.cpp @@ -35,7 +35,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxWindowDC) -wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap ) +void wxMemoryDC::Init() { m_ok = true; m_display = wxGetDisplay(); @@ -57,9 +57,6 @@ wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap ) SetBrush (* wxWHITE_BRUSH); SetPen (* wxBLACK_PEN); SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT)); - - if ( bitmap.IsOk() ) - SelectObject(bitmap); } wxMemoryDC::wxMemoryDC( wxDC* dc ) @@ -92,7 +89,7 @@ wxMemoryDC::~wxMemoryDC(void) { } -void wxMemoryDC::SelectObject( const wxBitmap& bitmap ) +void wxMemoryDC::DoSelect( const wxBitmap& bitmap ) { m_bitmap = bitmap;