if (menu_item_ptr->glyph != NO_GLYPH && iflags.use_menu_glyphs) {
unsigned special; /*notused */
- mapglyph(menu_item_ptr->glyph, &curletter, &color, &special, 0, 0, 0);
+// mapglyph(menu_item_ptr->glyph, &curletter, &color, &special, 0, 0, 0);
curses_toggle_color_attr(win, color, NONE, ON);
mvwaddch(win, menu_item_ptr->line_num + 1, start_col, curletter);
curses_toggle_color_attr(win, color, NONE, OFF);
unsigned int special;
int attr = -1;
+#if 0
/* map glyph to character and color */
- mapglyph(glyph, &ch, &color, &special, x, y, 0);
+ mapglyph(glyph, &ch, &color, &special, x, y, 0); */
+#endif
+ special = glyphmod[GM_FLAGS];
+ ch = (int) glyphmod[GM_TTYCHAR];
+ color = (int) glyphmod[GM_COLOR];
if ((special & MG_PET) && iflags.hilite_pet) {
attr = iflags.wc2_petattr;
}
/* water and lava look the same except for color; when color is off,
render lava in inverse video so that they look different */
if ((special & (MG_BW_LAVA | MG_BW_ICE)) != 0 && iflags.use_inverse) {
- attr = A_REVERSE; /* mapglyph() only sets this if color is off */
+ attr = A_REVERSE; /* map_glyphmod() only sets this if color is off */
}
}