X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f38924e863cd44e2abd49d20d201d72aa773c51e..1f640c45d43bc73423dbf70b76adeec37907a548:/src/os2/dcmemory.cpp diff --git a/src/os2/dcmemory.cpp b/src/os2/dcmemory.cpp index b42e384441..1332c9d2fb 100644 --- a/src/os2/dcmemory.cpp +++ b/src/os2/dcmemory.cpp @@ -28,12 +28,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC) // Memory DC ///////////////////////////////////////////////////////////////////////////// -wxMemoryDC::wxMemoryDC(void) -{ - CreateCompatible(NULL); - Init(); -} // end of wxMemoryDC::wxMemoryDC - wxMemoryDC::wxMemoryDC( wxDC* pOldDC ) @@ -118,7 +112,7 @@ bool wxMemoryDC::CreateCompatible( wxDC* WXUNUSED(pDC) ) return m_ok; } // end of wxMemoryDC::CreateCompatible -void wxMemoryDC::SelectObject( +void wxMemoryDC::DoSelect( const wxBitmap& rBitmap ) { @@ -165,6 +159,7 @@ void wxMemoryDC::SelectObject( ); m_vSelectedBitmap.SetSelectedInto(NULL); } + m_vSelectedBitmap = rBitmap;