[BOOTDATA][NTUSER] Fix GetSystemMetrics values (#2137)

Fix user32!GetSystemMetrics values. CORE-16547
SM_MENUDROPALIGNMENT and SM_CXSMSIZE
This commit is contained in:
Katayama Hirofumi MZ 2019-12-21 22:38:49 +09:00 committed by GitHub
parent 3d4a557db3
commit eba2d5d30a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View 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"

View 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;