]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/dcmemory.cpp
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / src / dfb / dcmemory.cpp
index 4f274d960cec7c21a45b4ac534a31b529788234c..9be66d94608fa0e1960ac65956f362a9b7c1f39b 100644 (file)
@@ -3,7 +3,6 @@
 // Purpose:     wxMemoryDCImpl implementation
 // Author:      Vaclav Slavik
 // Created:     2006-08-16
-// RCS-ID:      $Id$
 // Copyright:   (c) 2006 REA Elektronik GmbH
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -23,6 +22,7 @@
     #include "wx/bitmap.h"
 #endif
 
+#include "wx/dcmemory.h"
 #include "wx/dfb/dcmemory.h"
 #include "wx/dfb/private.h"
 
@@ -42,6 +42,19 @@ void wxMemoryDCImpl::Init()
 {
 }
 
+wxMemoryDCImpl::wxMemoryDCImpl(wxMemoryDC *owner)
+              : wxDFBDCImpl(owner)
+{
+    Init();
+}
+
+wxMemoryDCImpl::wxMemoryDCImpl(wxMemoryDC *owner, wxBitmap& bitmap)
+              : wxDFBDCImpl(owner)
+{
+    Init();
+    DoSelect(bitmap);
+}
+
 wxMemoryDCImpl::wxMemoryDCImpl(wxMemoryDC *owner, wxDC *WXUNUSED(dc))
               : wxDFBDCImpl(owner)
 {
@@ -51,7 +64,7 @@ void wxMemoryDCImpl::DoSelect(const wxBitmap& bitmap)
 {
     m_bmp = bitmap;
 
-    if ( !bitmap.Ok() )
+    if ( !bitmap.IsOk() )
     {
         // select the bitmap out of the DC
         m_surface = NULL;