opt out of bgcolor highlighting via bgcolors

This commit is contained in:
nhmall
2023-03-01 19:17:47 -05:00
parent 5a4d983104
commit d801736d09
3 changed files with 5 additions and 1 deletions

View File

@@ -221,6 +221,7 @@ struct instance_flags {
* as output from getdir(): simulated button used
* 0 (none) or CLICK_1 (left) or CLICK_2 (right) */
int getloc_filter; /* GFILTER_foo */
boolean bgcolors; /* display background colors on a map position */
boolean getloc_moveskip;
boolean getloc_travelmode;
boolean getloc_usemenu;

View File

@@ -172,6 +172,8 @@ static int optfn_##a(int, int, boolean, char *, char *);
NHOPTC(autounlock, Behavior, 80, opt_out, set_in_game,
Yes, Yes, No, Yes, NoAlias,
"action to take when encountering locked door or chest")
NHOPTB(bgcolors, Behavior, 0, opt_out, set_in_game,
On, Yes, No, No, NoAlias, &iflags.bgcolors, Term_Off)
NHOPTO("bind keys", Advanced, o_bind_keys, BUFSZ, opt_in, set_in_game,
No, Yes, No, NoAlias, "edit key binds")
#if defined(MICRO) && !defined(AMIGA)

View File

@@ -2346,7 +2346,8 @@ get_bkglyph_and_framecolor(coordxy x, coordxy y, int *bkglyph, uint32 *framecolo
return;
}
#endif
if (gw.wsettings.map_frame_color != NO_COLOR && mapxy_valid(x, y))
if (iflags.bgcolors
&& gw.wsettings.map_frame_color != NO_COLOR && mapxy_valid(x, y))
*framecolor = gw.wsettings.map_frame_color;
else
*framecolor = NO_COLOR;