renamed RGBColor setter to avoid former overload being an override

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2006-04-27 07:41:06 +00:00
parent b0fa218726
commit f61ed7ee42
3 changed files with 4 additions and 3 deletions

View File

@ -63,7 +63,8 @@ private:
public:
WXCOLORREF m_pixel ;
void Set( const WXCOLORREF* color ) ;
void FromRGBColor( const WXCOLORREF* color ) ;
private:
DECLARE_DYNAMIC_CLASS(wxColour)

View File

@ -68,7 +68,7 @@ int wxColourDialog::ShowModal()
currentColor.red = info.theColor.color.rgb.red ;
currentColor.green = info.theColor.color.rgb.green ;
currentColor.blue = info.theColor.color.rgb.blue ;
m_colourData.m_dataColour.Set((WXCOLORREF*) &currentColor);
m_colourData.m_dataColour.FromRGBColor((WXCOLORREF*) &currentColor);
return wxID_OK;
}
#else

View File

@ -52,7 +52,7 @@ void wxColour::InitWith (unsigned char r, unsigned char g, unsigned char b)
wxComposeRGBColor( &m_pixel , m_red , m_blue , m_green );
}
void wxColour::Set( const WXCOLORREF* color )
void wxColour::FromRGBColor( const WXCOLORREF* color )
{
RGBColor* col = (RGBColor*) color;
memcpy( &m_pixel, color, 6 );