Windows: fix ascii map hilite_pet

hilite_pet was working with tiles, but not with ascii map.
This commit is contained in:
nhmall
2026-07-06 11:00:50 -04:00
parent bb0016db0a
commit 98bb86ab33
2 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -989,7 +989,8 @@ paintGlyph(PNHMapWindow data, int i, int j, RECT * rect)
rgbcolor = nhcolor_to_RGB(color);
}
}
if (((data->map[i][j].gm.glyphflags & MG_PET) && iflags.hilite_pet)
if ((((data->map[i][j].gm.glyphflags & MG_PET) && iflags.hilite_pet)
|| ((data->map[i][j].gm.glyphflags & MG_OBJPILE) && iflags.hilite_pile))
|| ((data->map[i][j].gm.glyphflags & (MG_DETECT | MG_BW_LAVA
| MG_BW_ICE | MG_BW_SINK
| MG_BW_ENGR)) != 0)) {
+5
View File
@@ -2072,6 +2072,11 @@ mswin_preference_update(const char *pref)
return;
}
if (stricmp(pref, "hilite_pile") == 0) {
InvalidateRect(mswin_hwnd_from_winid(WIN_MAP), NULL, TRUE);
return;
}
if (stricmp(pref, "align_message") == 0
|| stricmp(pref, "align_status") == 0) {
mswin_layout_main_window(NULL);