mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
Update DxEngGetDCState and fix retun val for HDEV.
svn path=/trunk/; revision=31535
This commit is contained in:
parent
254445ecc4
commit
070123e351
1 changed files with 10 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue