Author: mkupfer
Date: Wed Oct 7 13:17:11 2009
New Revision: 43323
URL:
http://svn.reactos.org/svn/reactos?rev=43323&view=rev
Log:
- load UserPreferencesMask from registry
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c [iso-8859-1] Wed Oct 7
13:17:11 2009
@@ -122,6 +122,18 @@
return iValue;
}
return _wtoi(awcBuffer);
+}
+
+static
+DWORD
+SpiLoadUserPrefMask(DWORD dValue)
+{
+ DWORD Result;
+ if (!RegReadUserSetting(KEY_DESKTOP, VAL_USERPREFMASK, REG_BINARY, &Result,
sizeof(Result)))
+ {
+ return dValue;
+ }
+ return Result;
}
static
@@ -250,6 +262,7 @@
gspv.bDragFullWindows = SpiLoadInt(KEY_DESKTOP, VAL_DRAG, 0);
gspv.iWheelScrollLines = SpiLoadInt(KEY_DESKTOP, VAL_SCRLLLINES, 3);
gspv.dwMouseClickLockTime = SpiLoadDWord(KEY_DESKTOP, VAL_CLICKLOCKTIME, 1200);
+ gspv.dwUserPrefMask = SpiLoadUserPrefMask(UPM_DEFAULT);
#if (_WIN32_WINNT >= 0x0600)
gspv.iWheelScrollChars = SpiLoadInt(KEY_DESKTOP, VAL_SCRLLCHARS, 3);
#endif
@@ -263,7 +276,6 @@
gspv.uiFocusBorderHeight = 1;
gspv.bMenuDropAlign = 1;
gspv.bDropShadow = 1;
- gspv.dwUserPrefMask = UPM_DEFAULT;
gspv.dwMenuShowDelay = 100;
gspv.iScrSaverTimeout = 10;