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:
parent
b0fa218726
commit
f61ed7ee42
@ -63,7 +63,8 @@ private:
|
||||
|
||||
public:
|
||||
WXCOLORREF m_pixel ;
|
||||
void Set( const WXCOLORREF* color ) ;
|
||||
void FromRGBColor( const WXCOLORREF* color ) ;
|
||||
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxColour)
|
||||
|
@ -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*) ¤tColor);
|
||||
m_colourData.m_dataColour.FromRGBColor((WXCOLORREF*) ¤tColor);
|
||||
return wxID_OK;
|
||||
}
|
||||
#else
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user