]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/statbmp.cpp
Regenerated some more makefiles/filelists.
[wxWidgets.git] / src / motif / statbmp.cpp
index e0d2ac766ee4578c0faa08eb1ddff6b70fca8fa7..5209698fb0de2702e729b1fa1f09251745ae5b82 100644 (file)
@@ -124,7 +124,10 @@ void wxStaticBitmap::DoSetBitmap()
             pixmap = (Pixmap) m_messageBitmap.GetPixmap();
         }
         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();
 }