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:
@@ -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
|
||||
|
Reference in New Issue
Block a user