opt out of bgcolor highlighting via bgcolors
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user