X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2263a14efc121f52675be4408f26185779838c96..ce7208d49d5ce2ca1dc0b3b83f14f1d04f29c4bf:/src/motif/bmpmotif.cpp?ds=sidebyside diff --git a/src/motif/bmpmotif.cpp b/src/motif/bmpmotif.cpp index 4275b214fb..d9317536b4 100644 --- a/src/motif/bmpmotif.cpp +++ b/src/motif/bmpmotif.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: bitmap.cpp +// Name: src/motif/bmpmotif.cpp // Purpose: wxBitmap // Author: Julian Smart, originally in bitmap.cpp // Modified by: @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "bmpmotif.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -21,9 +17,12 @@ #define XtDisplay XTDISPLAY #endif -#include "wx/defs.h" #include "wx/motif/bmpmotif.h" +#ifndef WX_PRECOMP + #include "wx/math.h" +#endif + #ifdef __VMS__ #pragma message disable nosimpint #endif @@ -38,8 +37,6 @@ #include #endif -#include "wx/math.h" - Pixmap XCreateInsensitivePixmap( Display *display, Pixmap pixmap ); static inline wxCharBuffer GetCacheImageName(WXImage image) @@ -128,7 +125,7 @@ WXPixmap wxBitmapCache::GetPixmapFromCache(WXWidget w) while( XmIsGadget( widget ) ) widget = XtParent( widget ); - Pixel fg, bg; + WXPixel fg, bg; XtVaGetValues( widget, XmNbackground, &bg, XmNforeground, &fg,