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