X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/40989e46b86777dd211faeb3e5d2366cdcc6d8cd..f418332658bb166101c228e0ed8208787fccbf59:/src/mac/carbon/colour.cpp diff --git a/src/mac/carbon/colour.cpp b/src/mac/carbon/colour.cpp index 081bc24957..9d1435aa82 100644 --- a/src/mac/carbon/colour.cpp +++ b/src/mac/carbon/colour.cpp @@ -13,7 +13,9 @@ #include "wx/colour.h" -#include "wx/gdicmn.h" +#ifndef WX_PRECOMP + #include "wx/gdicmn.h" +#endif #include "wx/mac/private.h" @@ -42,17 +44,18 @@ wxColour::~wxColour () { } -void wxColour::InitWith (unsigned char r, unsigned char g, unsigned char b) +void wxColour::InitRGBA (unsigned char r, unsigned char g, unsigned char b, unsigned char a) { m_red = r; m_green = g; m_blue = b; + m_alpha = a ; m_isInit = true; wxComposeRGBColor( &m_pixel , m_red , m_blue , m_green ); } -void wxColour::Set( const WXCOLORREF* color ) +void wxColour::FromRGBColor( const WXCOLORREF* color ) { RGBColor* col = (RGBColor*) color; memcpy( &m_pixel, color, 6 );