mirror of
https://github.com/reactos/reactos.git
synced 2025-05-19 00:54:18 +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:
parent
3f1ab92d3a
commit
4414f45cc0
1 changed files with 1 additions and 1 deletions
|
@ -380,7 +380,7 @@ MenuInit(VOID)
|
||||||
ERR("MenuInit(): CreateFontIndirectW(hMenuFont) failed!\n");
|
ERR("MenuInit(): CreateFontIndirectW(hMenuFont) failed!\n");
|
||||||
return FALSE;
|
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);
|
ghMenuFontBold = GreCreateFontIndirectW(&ncm.lfMenuFont);
|
||||||
if (ghMenuFontBold == NULL)
|
if (ghMenuFontBold == NULL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue