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:
parent
1f81e6f384
commit
e3eca39097
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue