From e35dd7d3d3c00215fa08c6cf23017b519fd3b6af Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 31 Jan 2008 21:15:31 +0000 Subject: [PATCH] added InitRGBA to generic wxColour to fix linking (patch #1881796) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/colour.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/generic/colour.cpp b/src/generic/colour.cpp index 70600717d7..adc843d195 100644 --- a/src/generic/colour.cpp +++ b/src/generic/colour.cpp @@ -35,6 +35,18 @@ void wxColour::Init() m_isInit = false; } +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; +} + wxColour& wxColour::operator=(const wxColour& col) { m_red = col.m_red; -- 2.50.0