From 2dd1c99c45df58cda1e00a1b2fec05ede4d5be7c Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 21 Jan 2003 04:24:49 +0000 Subject: [PATCH] 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 --- wxPython/demo/wxMask.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wxPython/demo/wxMask.py b/wxPython/demo/wxMask.py index 7c1f7ccfc6..73402412eb 100644 --- a/wxPython/demo/wxMask.py +++ b/wxPython/demo/wxMask.py @@ -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