X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aea95b1c3a8ae221cc3aade5ce49a3cf848fd56a..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/src/msw/colour.cpp diff --git a/src/msw/colour.cpp b/src/msw/colour.cpp index d79ebc9af7..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; @@ -78,11 +79,12 @@ wxColour::~wxColour() } void wxColour::InitRGBA(unsigned char r, unsigned char g, unsigned char b, - unsigned char WXUNUSED(a)) + 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); }