[BOOTDATA][NTUSER] Fix GetSystemMetrics values (#2137)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sat, 21 Dec 2019 13:38:49 +0000 (22:38 +0900)
committerGitHub <noreply@github.com>
Sat, 21 Dec 2019 13:38:49 +0000 (22:38 +0900)
Fix user32!GetSystemMetrics values. CORE-16547
SM_MENUDROPALIGNMENT and SM_CXSMSIZE

boot/bootdata/hivedef.inf
win32ss/user/ntuser/sysparams.c

index 49c7b8b..dc32295 100644 (file)
@@ -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"
index 4fa4c3d..4dd8829 100644 (file)
@@ -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;