[ros-diffs] [jimtabor] 31535: Update DxEngGetDCState and fix retun val for HDEV.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Tue Jan 1 19:50:43 CET 2008


Author: jimtabor
Date: Tue Jan  1 21:50:42 2008
New Revision: 31535

URL: http://svn.reactos.org/svn/reactos?rev=31535&view=rev
Log:
Update DxEngGetDCState and fix retun val for HDEV.

Modified:
    trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c

Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c?rev=31535&r1=31534&r2=31535&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c Tue Jan  1 21:50:42 2008
@@ -402,10 +402,10 @@
 /************************************************************************/
 /* DxEngGetDCState                                                      */
 /************************************************************************/
-/* Note type 0 = ? */
-/* Note type 1 = ? */
-/* Note type 2 = ? */
-/* Note type 3 = Get Driver hdev */
+/* Note type 0 = N/A */
+/* Note type 1 = Is DC full screen */
+/* Note type 2 = Get Complexity of visiable region. */
+/* Note type 3 = Get Driver hdev, which is pPDev. */
 
 DWORD
 DxEngGetDCState(HDC hDC,
@@ -419,15 +419,15 @@
         switch (type)
         {
             case 1:
-                UNIMPLEMENTED;
-                return 0;
+                retVal = (DWORD) pDC->DC_Flags & DC_FLAG_FULLSCREEN;
+                break;
             case 2:
                 UNIMPLEMENTED;
-                return 0;
+                break;
             case 3:
-            {
-                PGDIDEVICE GDIDevice = (PGDIDEVICE)pDC->pPDev;
-                retVal = (DWORD)GDIDevice->hPDev;
+            {   // Return HDEV of this DC.            
+                retVal = (DWORD) pDC->pPDev;
+                break;
             }
             default:
                 UNIMPLEMENTED;




More information about the Ros-diffs mailing list