https://git.reactos.org/?p=reactos.git;a=commitdiff;h=eba2d5d30aa5fe95b02325...
commit eba2d5d30aa5fe95b0232561931f54d8cbe9845d Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Sat Dec 21 22:38:49 2019 +0900 Commit: GitHub noreply@github.com CommitDate: Sat Dec 21 22:38:49 2019 +0900
[BOOTDATA][NTUSER] Fix GetSystemMetrics values (#2137)
Fix user32!GetSystemMetrics values. CORE-16547 SM_MENUDROPALIGNMENT and SM_CXSMSIZE --- boot/bootdata/hivedef.inf | 2 +- win32ss/user/ntuser/sysparams.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/boot/bootdata/hivedef.inf b/boot/bootdata/hivedef.inf index 49c7b8bd11e..dc322952a1f 100644 --- a/boot/bootdata/hivedef.inf +++ b/boot/bootdata/hivedef.inf @@ -87,7 +87,7 @@ HKCU,"Control Panel\Desktop\WindowMetrics","ScrollWidth",2,"16" HKCU,"Control Panel\Desktop\WindowMetrics","ScrollHeight",2,"16" HKCU,"Control Panel\Desktop\WindowMetrics","CaptionWidth",2,"18" HKCU,"Control Panel\Desktop\WindowMetrics","CaptionHeight",2,"18" -HKCU,"Control Panel\Desktop\WindowMetrics","SmCaptionWidth",2,"13" +HKCU,"Control Panel\Desktop\WindowMetrics","SmCaptionWidth",2,"12" HKCU,"Control Panel\Desktop\WindowMetrics","SmCaptionHeight",2,"15" HKCU,"Control Panel\Desktop\WindowMetrics","MenuWidth",2,"18" HKCU,"Control Panel\Desktop\WindowMetrics","MenuHeight",2,"18" diff --git a/win32ss/user/ntuser/sysparams.c b/win32ss/user/ntuser/sysparams.c index 4fa4c3d4918..4dd882987fd 100644 --- a/win32ss/user/ntuser/sysparams.c +++ b/win32ss/user/ntuser/sysparams.c @@ -257,7 +257,7 @@ SpiUpdatePerUserSystemParameters(VOID) gspv.ncm.iCaptionWidth = SpiLoadMetric(L"CaptionWidth", 19); gspv.ncm.iCaptionHeight = SpiLoadMetric(L"CaptionHeight", 19); gspv.ncm.iSmCaptionWidth = SpiLoadMetric(L"SmCaptionWidth", 12); - gspv.ncm.iSmCaptionHeight = SpiLoadMetric(L"SmCaptionHeight", 14); + gspv.ncm.iSmCaptionHeight = SpiLoadMetric(L"SmCaptionHeight", 15); gspv.ncm.iMenuWidth = SpiLoadMetric(L"MenuWidth", 18); gspv.ncm.iMenuHeight = SpiLoadMetric(L"MenuHeight", 18); #if (WINVER >= 0x0600) @@ -305,7 +305,7 @@ SpiUpdatePerUserSystemParameters(VOID) gspv.bBeep = TRUE; gspv.uiFocusBorderWidth = 1; gspv.uiFocusBorderHeight = 1; - gspv.bMenuDropAlign = 1; + gspv.bMenuDropAlign = 0; gspv.dwMenuShowDelay = 100; gspv.dwForegroundFlashCount = 3;