X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aea95b1c3a8ae221cc3aade5ce49a3cf848fd56a..d6d857b12404a9e50bebdd8d143a547b72332f2d:/src/msw/colour.cpp diff --git a/src/msw/colour.cpp b/src/msw/colour.cpp index d79ebc9af7..9a9a13f98c 100644 --- a/src/msw/colour.cpp +++ b/src/msw/colour.cpp @@ -68,21 +68,19 @@ void wxColour::Init() { m_isInit = false; m_pixel = 0; + m_alpha = m_red = m_blue = m_green = 0; } -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); }