From 98bb86ab337c9953306ba6e7d20357409662d1c1 Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 6 Jul 2026 11:00:50 -0400 Subject: [PATCH] Windows: fix ascii map hilite_pet hilite_pet was working with tiles, but not with ascii map. --- win/win32/mhmap.c | 3 ++- win/win32/mswproc.c | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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);