https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4414f45cc07f8fe0cf709…
commit 4414f45cc07f8fe0cf70938833fa7f4f50ae80f4
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Mon Aug 5 23:16:01 2019 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Mon Aug 5 23:16:01 2019 +0900
[WIN32SS][NTUSER] Fix default menu item font weight (#1804)
CORE-16294
We had added "Arial Black" font, so a request for heavy weight font will be
realized as it is. This PR will fix font weight (FW_*) calculation of default menu items.
---
win32ss/user/ntuser/menu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/user/ntuser/menu.c b/win32ss/user/ntuser/menu.c
index 97e1fa2b805..ccd4d8cc058 100644
--- a/win32ss/user/ntuser/menu.c
+++ b/win32ss/user/ntuser/menu.c
@@ -380,7 +380,7 @@ MenuInit(VOID)
ERR("MenuInit(): CreateFontIndirectW(hMenuFont) failed!\n");
return FALSE;
}
- ncm.lfMenuFont.lfWeight = max(ncm.lfMenuFont.lfWeight + 300, 1000);
+ ncm.lfMenuFont.lfWeight = min(ncm.lfMenuFont.lfWeight + (FW_BOLD - FW_NORMAL),
FW_HEAVY);
ghMenuFontBold = GreCreateFontIndirectW(&ncm.lfMenuFont);
if (ghMenuFontBold == NULL)
{