From f536319deeae7939e819eb55ef6ff26c63f0e07e Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 30 Oct 2006 22:58:02 +0000 Subject: [PATCH] compilation fix after operator==() removal git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/bmpmotif.cpp | 2 +- src/motif/dc.cpp | 2 +- src/motif/dcclient.cpp | 2 +- src/motif/utils.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/motif/bmpmotif.cpp b/src/motif/bmpmotif.cpp index d9317536b4..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; diff --git a/src/motif/dc.cpp b/src/motif/dc.cpp index 884ac2e7e6..939442bd32 100644 --- a/src/motif/dc.cpp +++ b/src/motif/dc.cpp @@ -49,7 +49,7 @@ void wxDC::DoDrawBitmap( const wxBitmap& bitmap, wxCoord x, wxCoord y, bool useM wxCHECK_RET( bitmap.Ok(), "invalid bitmap" ); wxMemoryDC memDC; - memDC.SelectObject(bitmap); + memDC.SelectObjectAsSource(bitmap); #if 0 // Not sure if we need this. The mask should leave the masked areas as per diff --git a/src/motif/dcclient.cpp b/src/motif/dcclient.cpp index cb3cfbee40..2013cc7dbe 100644 --- a/src/motif/dcclient.cpp +++ b/src/motif/dcclient.cpp @@ -1690,7 +1690,7 @@ void wxWindowDC::SetPen( const wxPen &pen ) XSetStipple ((Display*) m_display,(GC) m_gcBacking, myStipple); } else if (m_currentStipple.Ok() - && ((m_currentStipple != oldStipple) || !GET_OPTIMIZATION)) + && ((!m_currentStipple.IsSameAs(oldStipple)) || !GET_OPTIMIZATION)) { XSetStipple ((Display*) m_display, (GC) m_gc, (Pixmap) m_currentStipple.GetDrawable()); diff --git a/src/motif/utils.cpp b/src/motif/utils.cpp index 84bc1a6d9a..c3b452d42b 100644 --- a/src/motif/utils.cpp +++ b/src/motif/utils.cpp @@ -971,7 +971,7 @@ wxBitmap wxCreateMaskedBitmap(const wxBitmap& bitmap, const wxColour& colour) wxMemoryDC destDC; wxMemoryDC srcDC; - srcDC.SelectObject(bitmap); + srcDC.SelectObjectAsSource(bitmap); destDC.SelectObject(newBitmap); wxBrush brush(colour, wxSOLID); -- 2.45.2