]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/bmpmotif.cpp
route all Cairo calls in GTK printing code through gs_cairo (is this still needed?)
[wxWidgets.git] / src / motif / bmpmotif.cpp
index d9317536b4f9cbe425035fdf05ed8c0b0f1506f8..525bc355a0d45256ccd34f556c516fb79a2de0aa 100644 (file)
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#ifdef __VMS
-#define XtParent XTPARENT
-#define XtDisplay XTDISPLAY
-#endif
-
 #include "wx/motif/bmpmotif.h"
 
 #ifndef WX_PRECOMP
@@ -70,7 +65,7 @@ wxBitmapCache::~wxBitmapCache()
 
 void wxBitmapCache::SetBitmap( const wxBitmap& bitmap )
 {
-    if( m_bitmap != bitmap )
+    if ( !m_bitmap.IsSameAs(bitmap) )
     {
         InvalidateCache();
         m_bitmap = bitmap;