From ce158b85e34d6bf254b26240483336113b4da4e3 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 17 Sep 2011 19:48:15 +0000 Subject: [PATCH] wxMSW requires mask bitmaps to have 1-bit depth git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- unittests/test_bitmap.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/unittests/test_bitmap.py b/unittests/test_bitmap.py index 97045200..cdf63475 100644 --- a/unittests/test_bitmap.py +++ b/unittests/test_bitmap.py @@ -56,11 +56,13 @@ class BitmapTests(wtc.WidgetTestCase): def test_BitmapMask(self): - b5 = wx.Bitmap(pngFile) + img = wx.Image(pngFile) + img = img.ConvertToMono(0,0,0) + bmp = wx.Bitmap(img, 1) m = wx.Mask() - m = wx.Mask(b5, 4) - m = wx.Mask(b5) - m = wx.Mask(b5, wx.Colour(1,2,3)) + m = wx.Mask(bmp, 4) + m = wx.Mask(bmp) + m = wx.Mask(bmp, wx.Colour(1,2,3)) #---------------------------------------------------------------------------