X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b478f242888560d1cb0d397bd70a9e47a640d394..05c218ee24532e075111254384d11e39f3106fcb:/src/osx/cocoa/colour.mm?ds=sidebyside diff --git a/src/osx/cocoa/colour.mm b/src/osx/cocoa/colour.mm index ffce54a794..aebe52e1f3 100644 --- a/src/osx/cocoa/colour.mm +++ b/src/osx/cocoa/colour.mm @@ -33,4 +33,9 @@ wxColour::wxColour(WX_NSColor col) } InitFromComponents(const_cast(components), noComp); } + +WX_NSColor wxColour::OSXGetNSColor() +{ + return [NSColor colorWithDeviceRed:m_red / 255.0 green:m_green / 255.0 blue:m_blue / 255.0 alpha:m_alpha / 255.0]; +} #endif \ No newline at end of file