mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 02:37:06 +00:00
- HACK: Create a missing VRefresh key when installing VMWare's video driver. This solution was proposed long time ago by Herve Poussineau and very recently by Gregor Brunmar. Now VMWare's video driver finally can work as expected, resolution setting works also (tested up to 1400x1050).
- TODO: VRefresh key is absent in the installation .inf, and should be somehow either ignored, or created by something else (not the installer). svn path=/trunk/; revision=28976
This commit is contained in:
parent
19b92eb8ab
commit
0857585ce4
|
@ -277,6 +277,7 @@ static BOOL
|
|||
SaveResolutionSettings(DWORD ResX, DWORD ResY, DWORD ColDepth)
|
||||
{
|
||||
HKEY hReg;
|
||||
DWORD VFreq = 85;
|
||||
|
||||
if(RegOpenKeyEx(HKEY_LOCAL_MACHINE,
|
||||
L"SYSTEM\\CurrentControlSet\\Services\\vmx_svga\\Device0",
|
||||
|
@ -302,6 +303,12 @@ SaveResolutionSettings(DWORD ResX, DWORD ResY, DWORD ColDepth)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if(RegSetValueEx(hReg, L"DefaultSettings.VRefresh", 0, REG_DWORD, (BYTE*)&VFreq, sizeof(DWORD)) != ERROR_SUCCESS)
|
||||
{
|
||||
RegCloseKey(hReg);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
RegCloseKey(hReg);
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue