Avoid assertion about mask from color bitmap

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-01-21 04:24:49 +00:00
parent 62aa2088fd
commit 2dd1c99c45

View File

@@ -40,8 +40,7 @@ class TestMaskWindow(wxScrolledWindow):
self.bmp_withmask = images.getTestStar2Bitmap()
# this mask comes from a monochrome bitmap
self.bmp_themask = images.getTestMaskBitmap()
self.bmp_themask.SetDepth(1)
self.bmp_themask = wxBitmapFromImage(images.getTestMaskImage(), 1)
mask = wxMask(self.bmp_themask)
# set the mask on our bitmap