]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dcmemory.cpp
Bunch of GTK theme changes.
[wxWidgets.git] / src / os2 / dcmemory.cpp
index a6af12eb9090e97f42e27fc0da6c0d30bccb2915..456e93e3d36c259529495c3042361f4d84b3365f 100644 (file)
@@ -55,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(
@@ -147,7 +148,7 @@ void wxMemoryDC::SelectObject(
 
     m_vSelectedBitmap = rBitmap;
 
-    WXHBITMAP                       hBmp = m_vSelectedBitmap.GetHBITMAP();
+    WXHBITMAP                       hBmp = rBitmap.GetHBITMAP();
 
     if (!hBmp)
         return;