From 070123e351fa362d9750d38853351008e4f2e92d Mon Sep 17 00:00:00 2001 From: James Tabor Date: Tue, 1 Jan 2008 18:50:42 +0000 Subject: [PATCH] Update DxEngGetDCState and fix retun val for HDEV. svn path=/trunk/; revision=31535 --- .../subsystems/win32/win32k/ntddraw/dxeng.c | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/reactos/subsystems/win32/win32k/ntddraw/dxeng.c b/reactos/subsystems/win32/win32k/ntddraw/dxeng.c index bbd54a43d71..85c956f5c1b 100644 --- a/reactos/subsystems/win32/win32k/ntddraw/dxeng.c +++ b/reactos/subsystems/win32/win32k/ntddraw/dxeng.c @@ -402,10 +402,10 @@ DWORD DxEngSetDCState(DWORD x1, DWORD x2, DWORD x3) /************************************************************************/ /* 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 @@ DxEngGetDCState(HDC hDC, 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;