MCPcopy Index your code
hub / github.com/NetHack/NetHack / reset_needed_visuals

Function reset_needed_visuals

src/options.c:8979–9014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8977#undef HELP_IDX
8978
8979staticfn void
8980reset_needed_visuals(void)
8981{
8982 if (go.opt_need_glyph_reset) {
8983 reset_glyphmap(gm_optionchange);
8984 }
8985 if (go.opt_reset_customcolors || go.opt_update_basic_palette
8986 || go.opt_reset_customsymbols || go.opt_need_redraw) {
8987 if (go.opt_update_basic_palette) {
8988#ifdef CHANGE_COLOR
8989 change_palette();
8990#endif
8991 go.opt_update_basic_palette = FALSE;
8992 }
8993 if (go.opt_reset_customcolors)
8994 reset_customcolors();
8995 if (go.opt_reset_customsymbols)
8996 reset_customsymbols();
8997 if (go.opt_need_redraw) {
8998 check_gold_symbol();
8999 reglyph_darkroom();
9000 }
9001 docrt();
9002 }
9003 if (go.opt_need_promptstyle) {
9004 adjust_menu_promptstyle(WIN_INVEN, &iflags.menu_headings);
9005 }
9006 if (disp.botl || disp.botlx) {
9007 bot();
9008 }
9009 go.opt_need_redraw = FALSE;
9010 go.opt_need_glyph_reset = FALSE;
9011 go.opt_reset_customcolors = FALSE;
9012 go.opt_reset_customsymbols = FALSE;
9013 go.opt_update_basic_palette = FALSE;
9014}
9015
9016/* doset(#optionsfull command) menu entries for compound options */
9017staticfn void

Callers 3

doset_simpleFunction · 0.85
dosetFunction · 0.85
toggle_bool_optionFunction · 0.85

Calls 9

reset_glyphmapFunction · 0.85
change_paletteFunction · 0.85
reset_customcolorsFunction · 0.85
reset_customsymbolsFunction · 0.85
check_gold_symbolFunction · 0.85
reglyph_darkroomFunction · 0.85
docrtFunction · 0.85
adjust_menu_promptstyleFunction · 0.85
botFunction · 0.85

Tested by

no test coverage detected