Author: greatlrd
Date: Mon Oct 15 11:50:59 2007
New Revision: 29592
URL:
http://svn.reactos.org/svn/reactos?rev=29592&view=rev
Log:
adding more redirect to dxg.sys
Modified:
branches/reactx/reactos/subsystems/win32/win32k/ntddraw/dvp.c
Modified: branches/reactx/reactos/subsystems/win32/win32k/ntddraw/dvp.c
URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/subsystems/win32…
==============================================================================
--- branches/reactx/reactos/subsystems/win32/win32k/ntddraw/dvp.c (original)
+++ branches/reactx/reactos/subsystems/win32/win32k/ntddraw/dvp.c Mon Oct 15 11:50:59
2007
@@ -13,6 +13,8 @@
#include <w32k.h>
#include <debug.h>
+DWORD (NTAPI* PGD_DVPFLIPVIDEOPORT)(HANDLE,HANDLE,HANDLE,PDD_FLIPVPORTDATA);
+DWORD (NTAPI* PGD_DVPGETVIDEOPORTBANDWITH)(HANDLE, PDD_GETVPORTBANDWIDTHDATA);
/************************************************************************/
/* NtGdiDvpCanCreateVideoPort */
@@ -57,7 +59,6 @@
{
}
-
/************************************************************************/
/* NtGdiDvpFlipVideoPort */
@@ -69,7 +70,19 @@
HANDLE hDDSurfaceTarget,
PDD_FLIPVPORTDATA puFlipVPortData)
{
-
+ PGD_DVPFLIPVIDEOPORT pfnDvpFlipVideoPort= NULL;
+ INT i;
+
+ DXG_GET_INDEX_FUNCTION(DXG_INDEX_DxDvpFlipVideoPort, pfnDvpFlipVideoPort);
+
+ if (pfnDvpFlipVideoPort == NULL)
+ {
+ DPRINT1("Warring no pfnDvpFlipVideoPort");
+ return DDHAL_DRIVER_NOTHANDLED;
+ }
+
+ DPRINT1("Calling on dxg.sys pfnDvpFlipVideoPort");
+ return pfnDvpFlipVideoPort(hVideoPort, hDDSurfaceCurrent, hDDSurfaceTarget,
puFlipVPortData);
}
@@ -81,7 +94,19 @@
NtGdiDvpGetVideoPortBandwidth(HANDLE hVideoPort,
PDD_GETVPORTBANDWIDTHDATA puGetVPortBandwidthData)
{
-
+ PGD_DVPGETVIDEOPORTBANDWITH pfnDvpGetVideoPortBandwidth = NULL;
+ INT i;
+
+ DXG_GET_INDEX_FUNCTION(DXG_INDEX_DxDvpGetVideoPortBandwidth,
pfnDvpGetVideoPortBandwidth);
+
+ if (pfnDvpGetVideoPortBandwidth == NULL)
+ {
+ DPRINT1("Warring no pfnDvpGetVideoPortBandwidth");
+ return DDHAL_DRIVER_NOTHANDLED;
+ }
+
+ DPRINT1("Calling on dxg.sys pfnDvpGetVideoPortBandwidth");
+ return pfnDvpGetVideoPortBandwidth(hVideoPort, pfnDvpGetVideoPortBandwidth);
}