pass menu_headings not test value for title

This commit is contained in:
nhmall
2023-11-16 06:01:07 -05:00
parent bc2c2f5138
commit d76176c41b
2 changed files with 3 additions and 2 deletions

View File

@@ -662,7 +662,6 @@ void
init_sound_disp_gamewindows(void)
{
int menu_behavior = MENU_BEHAVE_STANDARD;
color_attr menu_promptstyle = { NO_COLOR, ATR_INVERSE };
activate_chosen_soundlib();
@@ -682,7 +681,8 @@ init_sound_disp_gamewindows(void)
WIN_MAP = create_nhwindow(NHW_MAP);
WIN_INVEN = create_nhwindow(NHW_MENU);
if (WIN_INVEN != WIN_ERR)
adjust_menu_promptstyle(WIN_INVEN, &menu_promptstyle);
adjust_menu_promptstyle(WIN_INVEN, &iflags.menu_headings);
#ifdef TTY_PERM_INVENT
if (WINDOWPORT(tty) && WIN_INVEN != WIN_ERR) {
menu_behavior = MENU_BEHAVE_PERMINV;

View File

@@ -5418,6 +5418,7 @@ handler_menu_headings(void)
if (iflags.perm_invent)
update_inventory();
}
adjust_menu_promptstyle(WIN_INVEN, &iflags.menu_headings);
return optn_ok;
}