win32gui menu color attribute fix

from Alex Kompel...
This commit is contained in:
nhmall
2016-01-14 23:02:09 -05:00
parent 52b8139a4b
commit 2a0c69700f
2 changed files with 3 additions and 1 deletions

View File

@@ -1021,7 +1021,8 @@ onDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam)
if (iflags.use_menu_color
&& (menucolr = get_menu_coloring(item->str, &color, &attr))) {
/* TODO: use attr too */
SelectObject(lpdis->hDC,
mswin_get_font(NHW_MENU, attr, lpdis->hDC, FALSE));
if (color != NO_COLOR)
SetTextColor(lpdis->hDC, nhcolor_to_RGB(color));
}