]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/colour.mm
wiring OnInit on osx to a later point in event processing
[wxWidgets.git] / src / osx / cocoa / colour.mm
index ade182c046bc4f57405c59f73cbfee705347a424..ac622553e40f799de76c5ae91318b6975cd4473f 100644 (file)
@@ -42,5 +42,5 @@ wxColour::wxColour(WX_NSColor col)
 
 WX_NSColor wxColour::OSXGetNSColor() const
 {
-    return [NSColor colorWithDeviceRed:m_red / 255.0 green:m_green / 255.0 blue:m_blue / 255.0 alpha:m_alpha / 255.0];
+    return [NSColor colorWithCalibratedRed:m_red / 255.0 green:m_green / 255.0 blue:m_blue / 255.0 alpha:m_alpha / 255.0];
 }