X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46ccb5107ff22cb5cc1b36ef2a28ea1e31b0fc91..520e470fdd0daef09c77938db642e4583933c90d:/src/common/gdicmn.cpp diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index 69cc0cac80..d97f067d22 100644 --- a/src/common/gdicmn.cpp +++ b/src/common/gdicmn.cpp @@ -256,7 +256,11 @@ void wxColourDatabase::Initialize () wxColour *wxColourDatabase::FindColour(const wxString& colour) { - wxNode *node = Find((char *) (const char *)colour); + // VZ: make the comparaison case insensitive + wxString str = colour; + str.MakeUpper(); + + wxNode *node = Find(str); if (node) return (wxColour *)node->Data(); @@ -290,6 +294,11 @@ wxColour *wxColourDatabase::FindColour(const wxString& colour) #ifdef __WXMOTIF__ Display *display = XtDisplay((Widget) wxTheApp->GetTopLevelWidget()) ; #endif +#ifdef __XVIEW__ + Xv_Screen screen = xv_get(xview_server, SERVER_NTH_SCREEN, 0); + Xv_opaque root_window = xv_get(screen, XV_ROOT); + Display *display = (Display *)xv_get(root_window, XV_DISPLAY); +#endif /* MATTHEW: [4] Use wxGetMainColormap */ if (!XParseColor(display, (Colormap) wxTheApp->GetMainColormap((WXDisplay*) display), colour,&xcolour))