From: Alex Kompel Date: Tue, 2 Jun 2015 03:51:09 +0000 (-0700) Subject: win32_gui: honor use_status_hilites flag X-Git-Tag: NetHack-3.6.0_RC01~305 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7840fcf6bcf9a8451fe269f8026da5a5c276331a;p=nethack win32_gui: honor use_status_hilites flag --- diff --git a/win/win32/mhstatus.c b/win/win32/mhstatus.c index 70e0d235d..21d3b7bf2 100644 --- a/win/win32/mhstatus.c +++ b/win/win32/mhstatus.c @@ -245,7 +245,11 @@ onWMPaint(HWND hWnd, WPARAM wParam, LPARAM lParam) vlen = strlen(data->vals[*f]); NH_A2W(data->vals[*f], wbuf, SIZE(wbuf)); - if (data->colors[*f] == CLR_MAX + if (!iflags.use_status_hilites) { + SelectObject(hdc, normalFont); + SetBkColor(hdc, Bg); + SetTextColor(hdc, Fg); + } else if (data->colors[*f] == CLR_MAX || data->colors[*f] == BL_HILITE_NONE) { SelectObject(hdc, normalFont); SetBkColor(hdc, Bg);