1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-08-11 23:21:37 +01:00

Fix a bug where menuglyphs would screw up sidebar colors if menucolors was disabled

This commit is contained in:
Fredrik Ljungdahl 2017-06-11 22:43:17 +02:00 committed by Tangles
parent 1f81e6f384
commit e3eca39097

View file

@ -85,10 +85,10 @@ curses_add_inv(int y, int glyph, CHAR_P accelerator, attr_t attr,
int symbol = 0;
mapglyph(glyph, &symbol, &color, &dummy,
u.ux, u.uy);
attr = curses_color_attr(color, 0);
wattron(win, attr);
attr_t glyphclr = curses_color_attr(color, 0);
wattron(win, glyphclr);
wprintw(win, "%c ", symbol);
wattroff(win, attr);
wattroff(win, glyphclr);
}
#ifdef MENU_COLOR