git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73638
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
[NSColor colorWithCalibratedRed:(CGFloat) (m_colourData.GetColour().Red() / 255.0)
green:(CGFloat) (m_colourData.GetColour().Green() / 255.0)
blue:(CGFloat) (m_colourData.GetColour().Blue() / 255.0)
[NSColor colorWithCalibratedRed:(CGFloat) (m_colourData.GetColour().Red() / 255.0)
green:(CGFloat) (m_colourData.GetColour().Green() / 255.0)
blue:(CGFloat) (m_colourData.GetColour().Blue() / 255.0)
+ alpha:(CGFloat) (m_colourData.GetColour().Alpha() / 255.0)]
];
else
[[NSColorPanel sharedColorPanel] setColor:[NSColor blackColor]];
];
else
[[NSColorPanel sharedColorPanel] setColor:[NSColor blackColor]];
m_colourData.GetColour().Set(
(unsigned char) ([theColor redComponent] * 255.0),
(unsigned char) ([theColor greenComponent] * 255.0),
m_colourData.GetColour().Set(
(unsigned char) ([theColor redComponent] * 255.0),
(unsigned char) ([theColor greenComponent] * 255.0),
- (unsigned char) ([theColor blueComponent] * 255.0)
- );
+ (unsigned char) ([theColor blueComponent] * 255.0),
+ (unsigned char) ([theColor alphaComponent] * 255.0)
+ );
//Release the pool, we're done :)
[thePool release];
//Release the pool, we're done :)
[thePool release];