X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/40989e46b86777dd211faeb3e5d2366cdcc6d8cd..141d782d567f92933f6fe868fff5bace77e8ecd2:/src/x11/colour.cpp diff --git a/src/x11/colour.cpp b/src/x11/colour.cpp index a0d96399cf..32d69c30a0 100644 --- a/src/x11/colour.cpp +++ b/src/x11/colour.cpp @@ -14,8 +14,11 @@ #include "wx/colour.h" +#ifndef WX_PRECOMP + #include "wx/app.h" +#endif + #include "wx/gdicmn.h" -#include "wx/app.h" #include "wx/x11/private.h" @@ -247,7 +250,7 @@ bool wxColour::FromString(const wxChar *name) Display *dpy = wxGlobalDisplay(); WXColormap colormap = wxTheApp->GetMainColormap( dpy ); XColor xcol; - if ( XParseColor( dpy, (Colormap)colormap, wxGTK_CONV_SYS( name ), &xcol ) ) + if ( XParseColor( dpy, (Colormap)colormap, name , &xcol ) ) { UnRef();