]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/statbmp.cpp
fixes for user dash handling (patch 717736)
[wxWidgets.git] / src / motif / statbmp.cpp
index e0d2ac766ee4578c0faa08eb1ddff6b70fca8fa7..43e55139eec7c600b66333c38ddaff5890fe9ba1 100644 (file)
@@ -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();
 }