X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f7d32bb716ba2191d52cbf3ada5b3ff72103dfea..5f480c0bf140db144e00993b060af28e45cd9c94:/src/osx/core/colour.cpp diff --git a/src/osx/core/colour.cpp b/src/osx/core/colour.cpp index 39a4c09661..35114175ce 100644 --- a/src/osx/core/colour.cpp +++ b/src/osx/core/colour.cpp @@ -111,7 +111,7 @@ void wxColour::InitCGColorRef( CGColorRef col ) { m_cgColour.reset( col ); size_t noComp = CGColorGetNumberOfComponents( col ); - + const CGFloat *components = NULL; if ( noComp >= 1 && noComp <= 4 ) { @@ -130,7 +130,7 @@ void wxColour::InitFromComponents(const CGFloat* components, size_t numComponent m_red = m_green = m_blue = 0; return; } - + if ( numComponents >= 3 ) { m_red = (int)(components[0]*255+0.5);