X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7af68c666bda771e37812ca37f0c6cc1741fa3ec..e2a5251d0109a1be6b9ce5c818d89f56ebfaeae1:/src/motif/statbmp.cpp diff --git a/src/motif/statbmp.cpp b/src/motif/statbmp.cpp index e0d2ac766e..43e55139ee 100644 --- a/src/motif/statbmp.cpp +++ b/src/motif/statbmp.cpp @@ -121,10 +121,13 @@ void wxStaticBitmap::DoSetBitmap() wxBitmap newBitmap = wxCreateMaskedBitmap(m_messageBitmapOriginal, col); m_messageBitmap = newBitmap; - pixmap = (Pixmap) m_messageBitmap.GetPixmap(); + pixmap = (Pixmap) m_messageBitmap.GetDrawable(); } else - pixmap = (Pixmap) m_messageBitmap.GetLabelPixmap(widget); + { + m_bitmapCache.SetBitmap( m_messageBitmap ); + pixmap = (Pixmap)m_bitmapCache.GetLabelPixmap(widget); + } XtVaSetValues (widget, XmNlabelPixmap, pixmap, @@ -164,11 +167,13 @@ void wxStaticBitmap::ChangeBackgroundColour() wxWindow::ChangeBackgroundColour(); // must recalculate the background colour + m_bitmapCache.SetColoursChanged(); DoSetBitmap(); } void wxStaticBitmap::ChangeForegroundColour() { + m_bitmapCache.SetColoursChanged(); wxWindow::ChangeForegroundColour(); }