X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f61ed7ee42d7647663e48ac55062be0935bb07aa..83e8b44cc0bf8a2a8f162c67162f9ed68accd15f:/src/mac/carbon/colour.cpp diff --git a/src/mac/carbon/colour.cpp b/src/mac/carbon/colour.cpp index e9237fdbc6..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,11 +44,12 @@ 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 );