]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/xpmhand.cpp
Added chapter on collection and container classes to contents
[wxWidgets.git] / src / msw / xpmhand.cpp
index 1974d381f24c7e6d9cb22bf9c01ffbe5d50d978d..78459be1005c1f35f1f6f5752425c1b16931a9e1 100644 (file)
@@ -67,7 +67,8 @@ static void XpmToBitmap(wxBitmap *bitmap,
     if (xmask)
     {
         wxMask *mask = new wxMask();
-        mask->SetMaskBitmap((WXHBITMAP) wxInvertMask(xmask->bitmap));
+        mask->SetMaskBitmap((WXHBITMAP) wxInvertMask(xmask->bitmap,
+                                                     bm.bmWidth, bm.bmHeight));
         bitmap->SetMask(mask);
     }
 }