X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/355b4d3de54b76db87439fa2142c7334a6e48f85..f5058cd7d926d45a6b0673a0b557ca0792f60e48:/src/motif/utils.cpp diff --git a/src/motif/utils.cpp b/src/motif/utils.cpp index a0838b3bb0..efa8473ed1 100644 --- a/src/motif/utils.cpp +++ b/src/motif/utils.cpp @@ -24,11 +24,14 @@ #define XtDisplay XTDISPLAY #endif -#include "wx/setup.h" #include "wx/utils.h" + +#ifndef WX_PRECOMP + #include "wx/app.h" + #include "wx/dcmemory.h" +#endif + #include "wx/apptrait.h" -#include "wx/app.h" -#include "wx/dcmemory.h" #include "wx/bitmap.h" #include "wx/evtloop.h" @@ -529,7 +532,7 @@ void wxGetMousePosition( int* x, int* y ) *x = xev.x_root; *y = xev.y_root; #endif -}; +} // Return true if we have a colour display bool wxColourDisplay() @@ -910,7 +913,7 @@ void wxDoChangeForegroundColour(WXWidget widget, wxColour& foregroundColour) NULL); } -void wxDoChangeBackgroundColour(WXWidget widget, wxColour& backgroundColour, bool changeArmColour) +void wxDoChangeBackgroundColour(WXWidget widget, const wxColour& backgroundColour, bool changeArmColour) { wxComputeColours (XtDisplay((Widget) widget), & backgroundColour, (wxColour*) NULL);