Windows: fix ascii map hilite_pet
hilite_pet was working with tiles, but not with ascii map.
This commit is contained in:
+2
-1
@@ -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)) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user