check to turn on hilite must come after check to change color, since
changing color uses term_end_color which may turn off inverse video too
}
#endif
- if (((special & MG_PET) && iflags.hilite_pet) ||
- ((special & MG_DETECT) && iflags.use_inverse)) {
- term_start_attr(ATR_INVERSE);
- reverse_on = TRUE;
- }
-
#ifdef TEXTCOLOR
if (color != ttyDisplay->color) {
if(ttyDisplay->color != NO_COLOR)
}
#endif /* TEXTCOLOR */
+ /* must be after color check; term_end_color may turn off inverse too */
+ if (((special & MG_PET) && iflags.hilite_pet) ||
+ ((special & MG_DETECT) && iflags.use_inverse)) {
+ term_start_attr(ATR_INVERSE);
+ reverse_on = TRUE;
+ }
+
#if defined(USE_TILES) && defined(MSDOS)
if (iflags.grmode && iflags.tile_view)
xputg(glyph,ch,special);