+
+ // next get the mask, if any
+ if ( xpmAttr.mask_pixel != XpmUndefPixel )
+ {
+ int red, green, blue;
+ const char *clrString = xpmAttr.colorTable[xpmAttr.mask_pixel].c_color;
+ if ( strcmp(clrString, "None") == 0 )
+ {
+ // TODO what to do here??
+ red = green = 0;
+ blue = 1;
+ }
+ else
+ {
+ sscanf(clrString, "#%02x%02x%02x", &red, &green, &blue);
+ }
+
+ wxMask *mask = new wxMask(*bitmap, wxColour(red, green, blue));
+ bitmap->SetMask(mask);
+ }