X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83586c2aaec7a1045a0bb146a413bdd7f3581db0..3eabbbcc5d6a3dc2395a48eeed3da4bc894f644b:/src/osx/cocoa/colour.mm diff --git a/src/osx/cocoa/colour.mm b/src/osx/cocoa/colour.mm index 331022932f..ac622553e4 100644 --- a/src/osx/cocoa/colour.mm +++ b/src/osx/cocoa/colour.mm @@ -4,7 +4,7 @@ // Author: Kevin Ollivier // Modified by: // Created: 2009-10-31 -// RCS-ID: $Id: colour.cpp 61724 2009-08-21 10:41:26Z VZ $ +// RCS-ID: $Id$ // Copyright: (c) Kevin Ollivier // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -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]; }