mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
IntChangeDisplaySettings: Save refresh frequency in the registry. Now it's possible to change display settings when using the VBox display driver.
svn path=/trunk/; revision=40425
This commit is contained in:
@@ -1369,6 +1369,13 @@ IntChangeDisplaySettings(
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user