]> granicus.if.org Git - nethack/commitdiff
win32_gui: honor use_status_hilites flag
authorAlex Kompel <barbos+nethack@gmail.com>
Tue, 2 Jun 2015 03:51:09 +0000 (20:51 -0700)
committerAlex Kompel <barbos+nethack@gmail.com>
Tue, 2 Jun 2015 03:51:09 +0000 (20:51 -0700)
win/win32/mhstatus.c

index 70e0d235d6defa09b835d121ed7235741a58951c..21d3b7bf2dd475f0c63c380edd3ca36c865f695e 100644 (file)
@@ -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);