]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/dcmemory.cpp
don't use obsolete functions (mostly copystring() and Count()), remove their document...
[wxWidgets.git] / src / mgl / dcmemory.cpp
index 6017861c05c98fb6e2e121ad9c22b0af5533d278..d09e8080f84fe0915e91499fb1b99ebffeed04cf 100644 (file)
 
 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxWindowDC)
 
-wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap )
-    : wxDC()
+void wxMemoryDC::Init()
 {
     m_isMemDC = true;
-
-    if ( bitmap.IsOk() )
-        SelectObject(bitmap);
 }
 
 wxMemoryDC::wxMemoryDC(wxDC *WXUNUSED(dc)) : wxDC()
 {
-    m_isMemDC = true;
+    Init();
 }
 
 wxMemoryDC::~wxMemoryDC()
 {
 }
 
-void wxMemoryDC::SelectObject(const wxBitmap& bitmap)
+void wxMemoryDC::DoSelect(const wxBitmap& bitmap)
 {
     if ( bitmap.Ok() )
     {