Fixed menu painting for NCurses screen library.

This commit is contained in:
Andrew Borodin 2009-02-24 22:20:21 +03:00
parent 0c38f39876
commit a9d59f9afc
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2009-02-24 Andrew Borodin <aborodin@vmail.ru>
* src/menu.c: menubar_paint_idx(): fixed menu painting for NCurses screen library.
2009-02-24 Mikhail Pobolovets <styx.mp@gmail.com>

View File

@ -109,7 +109,7 @@ static void menubar_paint_idx (WMenu *menubar, int idx, int color)
widget_move (&menubar->widget, y, x + 1);
hline (slow_terminal ? ' ' : ACS_HLINE, menubar->max_entry_len);
} else {
const char *text;
const unsigned char *text;
addch((unsigned char)menu->entries [idx].first_letter);
for (text = menu->entries [idx].text; *text; text++)