]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dcmemory.cpp
Bunch of GTK theme changes.
[wxWidgets.git] / src / os2 / dcmemory.cpp
index e0a572c251514416b2c743d6740ae5438720cfdb..456e93e3d36c259529495c3042361f4d84b3365f 100644 (file)
@@ -14,6 +14,8 @@
 
 #ifndef WX_PRECOMP
 #include "wx/utils.h"
+#include "wx/app.h"
+#include "wx/log.h"
 #endif
 
 #include "wx/os2/private.h"
@@ -53,6 +55,7 @@ void wxMemoryDC::Init()
         // DrawText() to OPAQUE as required, otherwise always TRANSPARENT
         ::GpiSetBackMix( GetHPS(), BM_LEAVEALONE );
     }
+    memset(&m_vRclPaint, 0, sizeof(m_vRclPaint));
 } // end of wxMemoryDC::Init
 
 bool wxMemoryDC::CreateCompatible(
@@ -145,7 +148,7 @@ void wxMemoryDC::SelectObject(
 
     m_vSelectedBitmap = rBitmap;
 
-    WXHBITMAP                       hBmp = m_vSelectedBitmap.GetHBITMAP();
+    WXHBITMAP                       hBmp = rBitmap.GetHBITMAP();
 
     if (!hBmp)
         return;