bundle the display-related hints, that tell bot() and others

that an update is required, into a struct. Remove it from
context since there is no reason to save those.
This commit is contained in:
nhmall
2024-01-04 23:16:27 -05:00
parent 9bcff7b896
commit 22e52ee905
46 changed files with 246 additions and 238 deletions

View File

@@ -5013,7 +5013,7 @@ optfn_boolean(
case opt_showexp:
if (VIA_WINDOWPORT())
status_initialize(REASSESS_ONLY);
gc.context.botl = TRUE;
display.botl = TRUE;
break;
case opt_fixinv:
case opt_sortpack:
@@ -5069,7 +5069,7 @@ optfn_boolean(
} else if (WINDOWPORT(Qt)) {
/* Qt doesn't support HILITE_STATUS or FLUSH_STATUS so fails
VIA_WINDOWPORT(), but it does support WC2_HITPOINTBAR */
gc.context.botlx = TRUE;
display.botlx = TRUE;
#endif
}
break;
@@ -8715,7 +8715,7 @@ doset_simple(void)
/*
* I don't think the status window requires updating between
* simplemenu iterations.
if (gc.context.botl || gc.context.botlx) {
if (display.botl || display.botlx) {
bot();
}
*/
@@ -8970,7 +8970,7 @@ doset(void) /* changing options via menu by Per Liboriussen */
if (go.opt_need_promptstyle) {
adjust_menu_promptstyle(WIN_INVEN, &iflags.menu_headings);
}
if (gc.context.botl || gc.context.botlx) {
if (display.botl || display.botlx) {
bot();
}
return ECMD_OK;