X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e952859a63ff6c6edd1a393ab672c2ea7839d65..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/src/msw/colour.cpp?ds=inline diff --git a/src/msw/colour.cpp b/src/msw/colour.cpp index ad1c5221f9..acd528ef63 100644 --- a/src/msw/colour.cpp +++ b/src/msw/colour.cpp @@ -68,6 +68,7 @@ void wxColour::Init() { m_isInit = false; m_pixel = 0; + m_alpha = m_red = m_blue = m_green = 0; @@ -77,11 +78,13 @@ 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; m_pixel = PALETTERGB(m_red, m_green, m_blue); }