[BOOTDATA][NTUSER] Fix some system parameters (#2162)

CORE-16547
- Add IconTitleWrap registry value.
- Modify gspv.dwMenuShowDelay initial value.
- Initialize gspv.bFastTaskSwitch as TRUE.
This commit is contained in:
Katayama Hirofumi MZ 2019-12-25 18:12:43 +09:00 committed by GitHub
parent 76aaded77d
commit 9ce12f0b4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -94,6 +94,7 @@ HKCU,"Control Panel\Desktop\WindowMetrics","MenuHeight",2,"18"
HKCU,"Control Panel\Desktop\WindowMetrics","BorderWidth",2,"1"
HKCU,"Control Panel\Desktop\WindowMetrics","Shell Icon Size",2,"32"
HKCU,"Control Panel\Desktop\WindowMetrics","IconSpacing",2,"75"
HKCU,"Control Panel\Desktop\WindowMetrics","IconTitleWrap",2,"1"
HKCU,"Control Panel\Desktop\WindowMetrics","IconVerticalspacing",2,"75"
HKCU, "Control Panel\Desktop\WindowMetrics","CaptionFont",0x00000003,f5,ff,ff,ff,00,00,00,\
00,00,00,00,00,00,00,00,00,bc,02,00,00,00,00,00,01,00,00,00,00,54,00,61,00,68,00,6f,00,6d,\

View File

@ -152,7 +152,7 @@ SpiLoadTimeOut(VOID)
{
return 0;
}
if (wcslen(szApplicationName) == 0) return 0;
if (szApplicationName[0] == 0) return 0;
return SpiLoadInt(KEY_DESKTOP, VAL_SCRTO, 600);
}
@ -280,7 +280,7 @@ SpiUpdatePerUserSystemParameters(VOID)
gspv.im.cbSize = sizeof(ICONMETRICSW);
gspv.im.iHorzSpacing = SpiLoadMetric(VAL_ICONSPC, 64);
gspv.im.iVertSpacing = SpiLoadMetric(VAL_ICONVSPC, 64);
gspv.im.iTitleWrap = SpiLoadMetric(VAL_ITWRAP, 0);
gspv.im.iTitleWrap = SpiLoadMetric(VAL_ITWRAP, 1);
SpiLoadFont(&gspv.im.lfFont, L"IconFont", &lf1);
/* Load desktop settings */
@ -306,7 +306,7 @@ SpiUpdatePerUserSystemParameters(VOID)
gspv.uiFocusBorderWidth = 1;
gspv.uiFocusBorderHeight = 1;
gspv.bMenuDropAlign = 0;
gspv.dwMenuShowDelay = 100;
gspv.dwMenuShowDelay = SpiLoadInt(KEY_DESKTOP, L"MenuShowDelay", 400);
gspv.dwForegroundFlashCount = 3;
gspv.iScrSaverTimeout = SpiLoadTimeOut();
@ -316,6 +316,8 @@ SpiUpdatePerUserSystemParameters(VOID)
gspv.bScrSaverSecure = FALSE;
#endif
gspv.bFastTaskSwitch = TRUE;
gspv.accesstimeout.cbSize = sizeof(ACCESSTIMEOUT);
gspv.filterkeys.cbSize = sizeof(FILTERKEYS);
gspv.togglekeys.cbSize = sizeof(TOGGLEKEYS);