X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8508ea8a890c90e6e72b2579780ca2ccbf40270..b1b3ddd840a507f3ca85379bfa832f2b0c9105d6:/src/motif/bmpmotif.cpp diff --git a/src/motif/bmpmotif.cpp b/src/motif/bmpmotif.cpp index c0b958ab78..1ddb082650 100644 --- a/src/motif/bmpmotif.cpp +++ b/src/motif/bmpmotif.cpp @@ -15,6 +15,7 @@ #ifdef __VMS #define XtParent XTPARENT +#define XtDisplay XTDISPLAY #endif #include "wx/defs.h" @@ -99,7 +100,7 @@ void wxBitmapCache::CreateImageIfNeeded( WXWidget w ) (WXDisplay*)wxGetDisplay(); XImage *ximage = XGetImage( (Display*)m_display, - (Drawable)m_bitmap.GetPixmap(), + (Drawable)m_bitmap.GetDrawable(), 0, 0, m_bitmap.GetWidth(), m_bitmap.GetHeight(), AllPlanes, ZPixmap ); @@ -197,7 +198,7 @@ WXPixmap wxBitmapCache::GetInsensPixmap( WXWidget w ) m_insensPixmap = (WXPixmap)XCreateInsensitivePixmap( (Display*)m_display, - (Pixmap)m_bitmap.GetPixmap() ); + (Pixmap)m_bitmap.GetDrawable() ); m_recalcPixmaps.insens = !m_insensPixmap; return m_insensPixmap;