]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/dcmemory.mm
Better place for coordinate mirroring and removal
[wxWidgets.git] / src / cocoa / dcmemory.mm
index 218fb4ff8eedccfb39f61e9f409530de46d6ebe8..bf3920f49e29d76b86ec180bab50194a01dc14d3 100644 (file)
 
 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxDC)
 
-wxMemoryDC::wxMemoryDC(void)
+wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap )
 {
     m_cocoaNSImage = NULL;
     m_ok = false;
+
+    if ( bitmap.IsOk() )
+        SelectObject(bitmap);
 }
 
 wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )