]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/classic/dcmemory.cpp
use wxChar correctly in wxString docs; mark wx1 compatibility functions
[wxWidgets.git] / src / mac / classic / dcmemory.cpp
index 32949efa7524951e4ab82a6542504e03af1c2e26..ad765139d9802c5b63aac4a09c4b8bb6767b3873 100644 (file)
@@ -21,7 +21,7 @@
 
 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxPaintDC)
 
-wxMemoryDC::wxMemoryDC(void)
+wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap )
           : m_selected()
 {
     m_ok = true;
@@ -29,6 +29,9 @@ wxMemoryDC::wxMemoryDC(void)
     SetBrush(*wxWHITE_BRUSH);
     SetPen(*wxBLACK_PEN);
     m_ok = false;
+
+    if ( bitmap.IsOk() )
+        SelectObject(bitmap);
 };
 
 wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )