mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[WIN32SS][NTDDRAW] Get complexity of visible region in DxEngGetDCState (#2604)
CORE-7733 Get the complexity of visible region in the DxEngGetDCState() function, according to its remarks. This implementation returns a number of rectangles that make up the region, similarly to as it done in REGION_Complexity() function: https://git.reactos.org/?p=reactos.git;a=blob;f=win32ss/gdi/ntgdi/region.c;h=38bf3d377fa805e9db8768774c4fc473590252d0;hb=HEAD#l573 It is required by MS ddraw.dll when calling win32k/dxg functions during launching DirectDraw test or any DirectX 1 - 7 apps/games.
This commit is contained in:
parent
8bd6b9b6c2
commit
855bf46399
|
@ -4,6 +4,7 @@
|
||||||
* FILE: win32ss/reactx/ntddraw/dxeng.c
|
* FILE: win32ss/reactx/ntddraw/dxeng.c
|
||||||
* PURPOSE: Implementation of DxEng functions
|
* PURPOSE: Implementation of DxEng functions
|
||||||
* PROGRAMMERS: Magnus Olsen (magnus@greatlord.com)
|
* PROGRAMMERS: Magnus Olsen (magnus@greatlord.com)
|
||||||
|
* Oleg Dubinskiy (oleg.dubinskij2013@yandex.ua)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <win32k.h>
|
#include <win32k.h>
|
||||||
|
@ -442,7 +443,7 @@ DxEngSetHdevData(HDEV hDev,
|
||||||
* Return one of the type values
|
* Return one of the type values
|
||||||
*
|
*
|
||||||
* @remarks.
|
* @remarks.
|
||||||
* We do not have type 2 implemented yet
|
* none
|
||||||
*
|
*
|
||||||
*--*/
|
*--*/
|
||||||
DWORD_PTR
|
DWORD_PTR
|
||||||
|
@ -463,7 +464,8 @@ DxEngGetDCState(HDC hDC,
|
||||||
retVal = (DWORD_PTR) pDC->fs & DC_FLAG_FULLSCREEN;
|
retVal = (DWORD_PTR) pDC->fs & DC_FLAG_FULLSCREEN;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
UNIMPLEMENTED;
|
/* Return the number of rectangles in the visible region. */
|
||||||
|
retVal = (DWORD_PTR) pDC->prgnRao ? pDC->prgnRao->rdh.nCount : pDC->prgnVis->rdh.nCount;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue