Use wxColour ctor from NSColor directly
This makes the code simpler and fixes compilation with 10.7 SDK which doesn't have CGColor property in NSColor.
This commit is contained in:
@@ -116,10 +116,7 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)
|
|||||||
|
|
||||||
if ( sysColor )
|
if ( sysColor )
|
||||||
{
|
{
|
||||||
CGColorRef cgCol = sysColor.CGColor;
|
return wxColour(sysColor);
|
||||||
// wxColour takes ownership of CF reference
|
|
||||||
CFRetain(cgCol);
|
|
||||||
return wxColour(cgCol);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user