return GdiHandleTable->flDeviceUniq;
}
-ULONG gulVisRgnUniqueness; // Inc count everytime client region is updated.
+ULONG gulVisRgnUniqueness; // Increase count everytime client region is updated.
/************************************************************************/
/* DxEngVisRgnUniq */
/************************************************************************/
/* DxEngEnumerateHdev */
/************************************************************************/
-/* Enumate all drivers in win32k */
+/* Enumerate all drivers in win32k */
HDEV *
DxEngEnumerateHdev(HDEV *hdev)
{
- /* FIXME Enumate all drivers in win32k */
+ /* FIXME Enumerate all drivers in win32k */
UNIMPLEMENTED;
return FALSE;
}
* The hdev
*
* @param PGAMMARAMP Ramp
-* to fill in our gama ramp
+* to fill in our gamma ramp
*
* @return
-* This return FALSE or TRUE, FALSE for fail, TRUE for success
+*Returns TRUE for success, FALSE for failure
*
* @remarks.
-* ReactOS does not loop it, only set the gamma once.
+* ReactOS does not loop it, only sets the gamma once.
*
*--*/
BOOL
* @name DxEngLockDC
* @implemented
*
-* The function DxEngLockDC lock a hdc from dxg.sys
+* The function DxEngLockDC locks a hdc from dxg.sys
*
* @param HDC hDC
-* The handle we need want lock
+* The handle we want to lock
*
* @return
-* This api return PDC or NULL depns if it sussess lock the hdc or not
+* Returns PDC if lock succeeded or NULL depns if it failed
*
* @remarks.
* none
* @name DxEngUnlockDC
* @implemented
*
-* The function DxEngUnlockDC Unlock a pDC (hdc) from dxg.sys
+* The function DxEngUnlockDC unlocks a pDC (hdc) from dxg.sys
* @param PDC pDC
-* The handle we need unlock
+* The handle we want to unlock
*
* @return
-* This api always return TRUE if it sussess or not
+* This function returns TRUE no matter what
*
* @remarks.
* none
* @name DxEngSetDeviceGammaRamp
* @implemented
*
-* The function DxEngSetDeviceGammaRamp Set Gamma ramp from from dxg.sys
+* The function DxEngSetDeviceGammaRamp sets gamma ramp from dxg.sys
* @param HDEV hPDev
* The hdev
*
* @param PGAMMARAMP Ramp
-* to set in our gama ramp
+* Value to change gamma ramp to
*
-* @param BOOL Unuse
-* Info on this are avail at request. at moment ReactOS does not
-* does not use it. and problare never need it.
+* @param BOOL Test
+* Whether gamma should be tested. TRUE to test, FALSE to not test
*
* @return
-* This return FALSE or TRUE, FALSE for fail, TRUE for success
+*Returns TRUE for success, FALSE for failure
*
* @remarks.
-* ReactOS does not loop it, only set the gamma once.
+* ReactOS does not loop and only sets the gamma once.
*
*--*/
BOOL
-DxEngSetDeviceGammaRamp(HDEV hPDev, PGAMMARAMP Ramp, BOOL Unuse)
+DxEngSetDeviceGammaRamp(HDEV hPDev, PGAMMARAMP Ramp, BOOL Test)
{
- return IntSetDeviceGammaRamp(hPDev, Ramp);
+ return IntSetDeviceGammaRamp(hPDev, Ramp, Test);
}
/************************************************************************/
return FALSE;
}
-/************************************************************************/
-/* DxEngGetDCState */
-/************************************************************************/
+
+
+/*++
+* @name DxEngGetDCState
+* @implemented
+*
+* The function DxEngGetDCState is capable of returning three
+* DC states depending on what value is passed in its second parameter:
+* 1. If the DC is full screen
+* 2. Get Complexity of visible region
+* 3. Get Driver hdev, which is pPDev
+*
+* @param HDC hdc
+* The DC handle
+*
+* @param DWORD type
+* value 1 = Is DC fullscreen
+* value 2 = Get Complexity of visible region.
+* value 3 = Get Driver hdev, which is a pPDev.
+*
+* @return
+* Return one of the type values
+*
+* @remarks.
+* We do not have type 2 implement yet
+*
+*--*/
DWORD
DxEngGetDCState(HDC hDC,
DWORD type)
{
- PEDD_DIRECTDRAW_GLOBAL pEDDgpl = NULL;
PDC pDC = DC_LockDc(hDC);
+ DWORD retVal = 0;
+
if (pDC)
{
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;
- pEDDgpl = GDIDevice->pEDDgpl;
- DC_UnlockDc(pDC);
- return (DWORD)pEDDgpl;
+ /* Return the HDEV of this DC. */
+ retVal = (DWORD) pDC->pPDev;
+ break;
}
default:
- UNIMPLEMENTED;
+ /* if a valid type is not found, zero is returned */
+ DPRINT1("Warning did not find type %d\n",type);
break;
}
+ DC_UnlockDc(pDC);
}
- return 0;
+ return retVal;
}
/************************************************************************/