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:
Vadim Zeitlin
2015-11-25 19:57:57 +01:00
parent 0185d61a2c
commit 56ebe6dfac

View File

@@ -116,10 +116,7 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)
if ( sysColor )
{
CGColorRef cgCol = sysColor.CGColor;
// wxColour takes ownership of CF reference
CFRetain(cgCol);
return wxColour(cgCol);
return wxColour(sysColor);
}
else
{