X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18680f86512504f043ad5d0b222afc7be87aa3e9..1a1f3e4b53fd5d1515b16905edf4250dfb2fc676:/src/motif/bmpmotif.cpp?ds=sidebyside diff --git a/src/motif/bmpmotif.cpp b/src/motif/bmpmotif.cpp index f79d04c32b..155adc1cf4 100644 --- a/src/motif/bmpmotif.cpp +++ b/src/motif/bmpmotif.cpp @@ -70,7 +70,7 @@ wxBitmapCache::~wxBitmapCache() void wxBitmapCache::SetBitmap( const wxBitmap& bitmap ) { - if( m_bitmap != bitmap ) + if ( !m_bitmap.IsSameAs(bitmap) ) { InvalidateCache(); m_bitmap = bitmap; @@ -125,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,