mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[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.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user