win32_gui: honor use_status_hilites flag

This commit is contained in:
Alex Kompel
2015-06-01 20:51:09 -07:00
parent 83e3d2e853
commit 7840fcf6bc

View 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);