diff --git a/win/win32/mhmap.c b/win/win32/mhmap.c index 390185674..263e33bd4 100644 --- a/win/win32/mhmap.c +++ b/win/win32/mhmap.c @@ -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)) { diff --git a/win/win32/mswproc.c b/win/win32/mswproc.c index 09c8cb4ad..976b8d765 100644 --- a/win/win32/mswproc.c +++ b/win/win32/mswproc.c @@ -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);