From d76176c41b4b5d1aad668f35f1d402bcfc5486a6 Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 16 Nov 2023 06:01:07 -0500 Subject: [PATCH] pass menu_headings not test value for title --- src/allmain.c | 4 ++-- src/options.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/allmain.c b/src/allmain.c index 7681a5b58..c4ca64d56 100644 --- a/src/allmain.c +++ b/src/allmain.c @@ -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; diff --git a/src/options.c b/src/options.c index 5c91f631f..9804c989a 100644 --- a/src/options.c +++ b/src/options.c @@ -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; }