- m_red = [rgbColor redComponent]*255.0;
- m_green = [rgbColor greenComponent]*255.0;
- m_blue = [rgbColor blueComponent]*255.0;
+ m_red = (wxUint8) ([rgbColor redComponent] * 255.0);
+ m_green = (wxUint8) ([rgbColor greenComponent] * 255.0);
+ m_blue = (wxUint8) ([rgbColor blueComponent] * 255.0);
+ m_alpha = (wxUint8) ([rgbColor alphaComponent] * 255.0);