+ if (m_bmpSelectedOriginal.GetMask())
+ {
+ int backgroundPixel;
+ XtVaGetValues((Widget) m_mainWidget,
+ XmNarmColor, &backgroundPixel,
+ NULL);
+
+ wxColour col;
+ col.SetPixel(backgroundPixel);
+
+ wxBitmap newBitmap =
+ wxCreateMaskedBitmap(m_bmpSelectedOriginal, col);
+ m_bmpSelected = newBitmap;
+
+ armPixmap = (Pixmap) m_bmpSelected.GetDrawable();
+ }
+ else
+ armPixmap = (Pixmap) m_bitmapCache.GetArmPixmap(m_mainWidget);
+ }
+ else
+ armPixmap = (Pixmap) m_bitmapCache.GetArmPixmap(m_mainWidget);
+
+#if 0
+ // <- the Get...Pixmap()-functions return the same pixmap!
+ if (insensPixmap == pixmap)
+ {
+ insensPixmap =
+ XCreateInsensitivePixmap(DisplayOfScreen(XtScreen((Widget) m_mainWidget)), pixmap);