remove mapglyph() remnants from win/curses/

Remove a couple of leftover references to mapglyph() from the
curses code (present inside '#if 0' blocks).  I've tried to
substitute code which should work but have no idea whether it
actually will.
This commit is contained in:
PatR
2021-01-02 10:46:17 -08:00
parent 9bd992f4a5
commit b815c470ec
2 changed files with 10 additions and 7 deletions
+6 -4
View File
@@ -120,12 +120,14 @@ curses_add_inv(int y,
}
#if 0 /* FIXME: MENU GLYPHS */
if (accelerator && glyph != NO_GLYPH && iflags.use_menu_glyphs) {
unsigned dummy = 0; /* Not used */
int color = 0;
int symbol = 0;
unsigned glyphmod[NUM_GLYPHMOD];
int symbol;
attr_t glyphclr;
/* mapglyph(glyph, &symbol, &color, &dummy, u.ux, u.uy, 0); */
map_glyphmod(0, 0, glyph, 0U, glyphmod);
symbol = (int) glyphmod[GM_TTYCHAR];
color = (int) glyphmod[GM_COLOR];
glyphclr = curses_color_attr(color, 0);
wattron(win, glyphclr);
wprintw(win, "%c ", symbol);