return new wxColourRefData(*(wxColourRefData *)data);
}
-void wxColour::InitWith( unsigned char red, unsigned char green, unsigned char blue )
+void wxColour::InitRGBA(unsigned char red, unsigned char green, unsigned char blue,
+ unsigned char WXUNUSED(alpha))
{
AllocExclusive();
return (WXColor*) &M_COLDATA->m_color;
}
-bool wxColour::FromString(const wxChar *name)
+bool wxColour::FromString(const wxString& name)
{
Display *dpy = wxGlobalDisplay();
WXColormap colormap = wxTheApp->GetMainColormap( dpy );
XColor xcol;
- if ( XParseColor( dpy, (Colormap)colormap, name , &xcol ) )
+ if ( XParseColor( dpy, (Colormap)colormap, name.mbc_str(), &xcol ) )
{
UnRef();