+ wxColour col;
+
+ Display *dpy = wxGlobalDisplay();
+ WXColormap colormap = wxTheApp->GetMainColormap( dpy );
+ XColor xcol;
+ if ( XParseColor( dpy, (Colormap)colormap, name.mb_str(), &xcol ) )
+ {
+ col.m_red = (unsigned char)(xcol.red & 0xff);
+ col.m_green = (unsigned char)(xcol.green & 0xff);
+ col.m_blue = (unsigned char)(xcol.blue & 0xff);
+ col.m_isInit = true;
+ col.m_pixel = -1;
+ }
+
+ return col;