]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/dcmemory.cpp
Fix the rectangle size when offsetting
[wxWidgets.git] / src / palmos / dcmemory.cpp
index 461b478a5390730bd684c0bd3920a1348c0ebcc4..96487eba36b0831a7db43ad2ee2421c8c2fe7484 100644 (file)
@@ -45,8 +45,10 @@ IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
 // wxMemoryDC
 // ----------------------------------------------------------------------------
 
-wxMemoryDC::wxMemoryDC()
+wxMemoryDC::wxMemoryDC( const wxBitmap& bitmap )
 {
+    if ( bitmap.IsOk() )
+        SelectObject(bitmap);
 }
 
 wxMemoryDC::wxMemoryDC(wxDC *dc)