]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/dcmemory.cpp
avoiding nesting dcs on the same window concurrently
[wxWidgets.git] / src / dfb / dcmemory.cpp
index bb9171db678b6664bc5e82e0da41ffaa4e25bc14..036fcb81e108287e965a9c9f3fcdf4877386c071 100644 (file)
 
 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
 
-wxMemoryDC::wxMemoryDC()
+wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap )
 {
+    if ( bitmap.IsOk() )
+        SelectObject(bitmap);
 }
 
 wxMemoryDC::wxMemoryDC(wxDC *WXUNUSED(dc))