github issue #481 - highlighting for #overview

Report states that the dungeon overview menu doesn't honor the
'menu_headings' option.  However, dungeon overview is not a menu.

Despite that, switch its hardcoded use of bold and inverse to use
the option value instead.  It doesn't really need two different
highlights and this allows user to control which video attribute
gets used.  If someone wants different highlighting for overview
than for menus, they're out of luck.

Fixes #481
This commit is contained in:
PatR
2021-04-01 14:10:30 -07:00
parent 921b7b955f
commit 770afba463
2 changed files with 4 additions and 2 deletions

View File

@@ -3257,7 +3257,7 @@ print_mapseen(winid win, mapseen *mptr,
Sprintf(buf, "%s: levels %d to %d",
g.dungeons[dnum].dname, depthstart,
depthstart + g.dungeons[dnum].dunlev_ureached - 1);
putstr(win, !final ? ATR_INVERSE : 0, buf);
putstr(win, !final ? iflags.menu_headings : 0, buf);
}
/* calculate level number */
@@ -3282,7 +3282,7 @@ print_mapseen(winid win, mapseen *mptr,
(!final || (final == 1 && how == ASCENDED)) ? "are"
: (final == 1 && how == ESCAPED) ? "left from"
: "were");
putstr(win, !final ? ATR_BOLD : 0, buf);
putstr(win, !final ? iflags.menu_headings : 0, buf);
if (mptr->flags.forgot)
return;