]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/dcmemory.cpp
set click coordinates to (-1, -1) if right mouse button event was generated from...
[wxWidgets.git] / src / motif / dcmemory.cpp
index 8ac24c411ea59731dbaed1bc7bb1a79f4e53f49b..ce07b8fdd806c74da7a9ae2d4da0b99da8478b8c 100644 (file)
@@ -9,10 +9,13 @@
 // Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "dcmemory.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/dcmemory.h"
 #include "wx/settings.h"
 #include "wx/utils.h"
@@ -105,7 +108,7 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
     
     if (m_bitmap.Ok() && (bitmap.GetDisplay() == m_display))
     {
-        m_pixmap = m_bitmap.GetPixmap();
+        m_pixmap = m_bitmap.GetDrawable();
         Display* display = (Display*) m_display;
         
         XGCValues gcvalues;