reduce flashing w/options simple menu iterations

This commit is contained in:
nhmall
2023-12-03 01:15:04 -05:00
parent 7d22a2c7b9
commit 713eafc8c8
3 changed files with 12 additions and 4 deletions

View File

@@ -8666,7 +8666,8 @@ doset_simple_menu(void)
int
doset_simple(void)
{
int pickedone = 0;
int pickedone = 0,
opt_crt_flags = docrtNocls;
if (iflags.menu_requested) {
/* doset() checks for 'm' and calls doset_simple(); clear the
@@ -8690,14 +8691,18 @@ doset_simple(void)
if (go.opt_need_redraw) {
check_gold_symbol();
reglyph_darkroom();
docrt();
docrt_flags(opt_crt_flags);
flush_screen(1);
}
if (go.opt_need_promptstyle)
adjust_menu_promptstyle(WIN_INVEN, &iflags.menu_headings);
/*
* I don't think the status window requires updating between
* simplemenu iterations.
if (gc.context.botl || gc.context.botlx) {
bot();
}
*/
} while (pickedone > 0);
give_opt_msg = TRUE;
return ECMD_OK;