Author: jgardou
Date: Wed May 26 01:45:55 2010
New Revision: 47356
URL:
http://svn.reactos.org/svn/reactos?rev=47356&view=rev
Log:
[WIN32K]
- Set right flags when reading display modes from registry
- Implement UserEnumRegistryDisplaySettings
Modified:
branches/reactos-yarotows/subsystems/win32/win32k/ntuser/display.c
Modified: branches/reactos-yarotows/subsystems/win32/win32k/ntuser/display.c
URL:
http://svn.reactos.org/svn/reactos/branches/reactos-yarotows/subsystems/win…
==============================================================================
--- branches/reactos-yarotows/subsystems/win32/win32k/ntuser/display.c [iso-8859-1]
(original)
+++ branches/reactos-yarotows/subsystems/win32/win32k/ntuser/display.c [iso-8859-1] Wed
May 26 01:45:55 2010
@@ -91,8 +91,8 @@
/* Read all present settings */
READ(dmBitsPerPel, "DefaultSettings.BitsPerPel", DM_BITSPERPEL);
- READ(dmPelsWidth, "DefaultSettings.XResolution", DM_YRESOLUTION); //
DM_XRESOLUTION?
- READ(dmPelsHeight, "DefaultSettings.YResolution", DM_YRESOLUTION);
+ READ(dmPelsWidth, "DefaultSettings.XResolution", DM_PELSWIDTH);
+ READ(dmPelsHeight, "DefaultSettings.YResolution", DM_PELSHEIGHT);
READ(dmDisplayFlags, "DefaultSettings.Flags", DM_DISPLAYFLAGS);
READ(dmDisplayFrequency, "DefaultSettings.VRefresh", DM_DISPLAYFREQUENCY);
READ(dmPanningWidth, "DefaultSettings.XPanning", DM_PANNINGWIDTH);
@@ -569,8 +569,15 @@
IN PUNICODE_STRING pustrDevice,
OUT LPDEVMODEW pdm)
{
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
+ HKEY hkey;
+ NTSTATUS Status = UserOpenDisplaySettingsKey(&hkey, pustrDevice, 0);
+ if(NT_SUCCESS(Status))
+ {
+ RegReadDisplaySettings(hkey, pdm);
+ ZwClose(hkey);
+ return STATUS_SUCCESS;
+ }
+ return Status ;
}