X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a06066343d670807825adcafebfa4fb8cfff5521..8b1ed8d979f193aa78b74c7d7a4a4ac33e50c121:/src/os2/colour.cpp diff --git a/src/os2/colour.cpp b/src/os2/colour.cpp index a5e9556dac..b9bd2f6bc3 100644 --- a/src/os2/colour.cpp +++ b/src/os2/colour.cpp @@ -12,6 +12,10 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#ifndef WX_PRECOMP + #include "wx/colour.h" +#endif + #include "wx/gdicmn.h" #define INCL_GPI #define INCL_PM @@ -38,7 +42,7 @@ wxColour::wxColour ( m_cGreen = cGreen; m_cBlue = cBlue; m_bIsInit = TRUE; - m_vPixel = PALETTERGB (m_cRed, m_cGreen, m_cBlue); + m_vPixel = OS2RGB (m_cRed, m_cGreen, m_cBlue); } // end of wxColour::wxColour wxColour::wxColour ( @@ -84,7 +88,7 @@ void wxColour::InitFromName( m_cBlue = 0; m_bIsInit = FALSE; } - m_vPixel = PALETTERGB (m_cRed, m_cGreen, m_cBlue); + m_vPixel = OS2RGB (m_cRed, m_cGreen, m_cBlue); } // end of wxColour::InitFromName wxColour::~wxColour () @@ -101,22 +105,5 @@ void wxColour::Set ( m_cGreen = cGreen; m_cBlue = cBlue; m_bIsInit = TRUE; - m_vPixel = PALETTERGB (m_cRed, m_cGreen, m_cBlue); + m_vPixel = OS2RGB (m_cRed, m_cGreen, m_cBlue); } // end of wxColour::Set - -// -// Obsolete -// -#if WXWIN_COMPATIBILITY -void wxColour::Get ( - unsigned char* pRed -, unsigned char* pGreen -, unsigned char* pBlue -) const -{ - *Red = m_cRed; - *Green = m_cGreen; - *Blue = m_cBlue; -} // end of wxColour::Get -#endif -