+ wxMask* mask;
+ wxBitmap newbmp;
+ if ( bmp.HasAlpha() )
+ {
+ // Convert alpha to a mask. NOTE: It would be better to actually put
+ // the alpha into the icon instead of making a mask, but I don't have
+ // time to figure that out today.
+ wxImage img = bmp.ConvertToImage();
+ img.ConvertAlphaToMask();
+ newbmp = wxBitmap(img);
+ mask = newbmp.GetMask();
+ }
+ else
+ {
+ mask = bmp.GetMask();
+ }
+