Author: tkreuzer
Date: Thu Apr 9 03:15:35 2009
New Revision: 40425
URL:
http://svn.reactos.org/svn/reactos?rev=40425&view=rev
Log:
IntChangeDisplaySettings: Save refresh frequency in the registry. Now it's possible to
change display settings when using the VBox display driver.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/device.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/device.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/device.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/device.c [iso-8859-1] Thu Apr 9
03:15:35 2009
@@ -1369,6 +1369,13 @@
Status = ZwSetValueKey(DevInstRegKey, &RegistryKey, 0, REG_DWORD,
&NewValue, sizeof(NewValue));
}
+ if (NT_SUCCESS(Status) && DevMode->dmFields &
DM_DISPLAYFREQUENCY)
+ {
+ RtlInitUnicodeString(&RegistryKey,
L"DefaultSettings.VRefresh");
+ NewValue = DevMode->dmDisplayFrequency;
+ Status = ZwSetValueKey(DevInstRegKey, &RegistryKey, 0, REG_DWORD,
&NewValue, sizeof(NewValue));
+ }
+
ZwClose(DevInstRegKey);
if (NT_SUCCESS(Status))
Ret = DISP_CHANGE_RESTART;