X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e952859a63ff6c6edd1a393ab672c2ea7839d65..00b20999de57eee2567f8e20962d34417840fdd0:/src/msw/colour.cpp?ds=inline 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); }