X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/432efcb004c8a7f4997acab1aa044c78226c36bb..950905affdfa9041316f82308e1a11e82c783070:/src/msw/dcmemory.cpp?ds=inline diff --git a/src/msw/dcmemory.cpp b/src/msw/dcmemory.cpp index 36ff844b21..5565670444 100644 --- a/src/msw/dcmemory.cpp +++ b/src/msw/dcmemory.cpp @@ -47,16 +47,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC) // wxMemoryDC // ---------------------------------------------------------------------------- -wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap ) -{ - CreateCompatible(NULL); - - Init(); - - if ( bitmap.IsOk() ) - SelectObject(bitmap); -} - wxMemoryDC::wxMemoryDC(wxDC *dc) { wxCHECK_RET( dc, _T("NULL dc in wxMemoryDC ctor") ); @@ -91,7 +81,7 @@ bool wxMemoryDC::CreateCompatible(wxDC *dc) return m_ok; } -void wxMemoryDC::SelectObject(const wxBitmap& bitmap) +void wxMemoryDC::DoSelect( const wxBitmap& bitmap) { // select old bitmap out of the device context if ( m_oldBitmap )