}
if (dooppsel && item->isSelected()) {
+#ifdef BITMAPBUTTONS
if ( style->tick_image.mask != None) {
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(),
oppsel_x, item_y + menu.item_h/2 - style->tick_image.h/2);
XSetClipMask(blackbox->getXDisplay(), pen.gc(),
style->tick_image.mask);
- cout << oppsel_x << ' ' << sel_x << endl;
XFillRectangle(blackbox->getXDisplay(), menu.frame, pen.gc(),
oppsel_x, item_y + menu.item_h/2 - style->tick_image.h/2,
style->tick_image.w,
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(),
0, 0);
} else {
+#endif // BITMAPBUTTONS
XPoint pts[6];
pts[0].x = oppsel_x + 0;
XFillPolygon(display, menu.frame, pen.gc(), pts, 6, Nonconvex,
CoordModePrevious);
+#ifdef BITMAPBUTTONS
}
+#endif // BITMAPBUTTONS
}
if (dotext && text) {
}
if (dosel && item->submenu()) {
+#ifdef BITMAPBUTTONS
if ( style->bullet_image.mask != None) {
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(),
sel_x, item_y + menu.item_h/2 - style->bullet_image.h/2);
XFillRectangle(blackbox->getXDisplay(), menu.frame, pen.gc(),
sel_x, item_y + menu.item_h/2 - style->bullet_image.h/2,
- sel_x + style->bullet_image.w,
- item_y + menu.item_h/2 + style->bullet_image.h/2);
+ style->bullet_image.w, style->bullet_image.h);
XSetClipMask(blackbox->getXDisplay(), pen.gc(), None);
XSetClipOrigin(blackbox->getXDisplay(), pen.gc(),
0, 0);
} else {
+#endif // BITMAPBUTTONS
const int bullet_size = 3;
switch (screen->getMenuStyle()->bullet) {
CoordModePrevious);
break;
}
+#ifdef BITMAPBUTTONS
}
+#endif // BITMAPBUTTONS
}
}