Author: greatlrd
Date: Mon Oct 15 13:49:58 2007
New Revision: 29596
URL:
http://svn.reactos.org/svn/reactos?rev=29596&view=rev
Log:
add one more redirect to dxg.sys
Modified:
branches/reactx/reactos/subsystems/win32/win32k/include/intddraw.h
branches/reactx/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
Modified: branches/reactx/reactos/subsystems/win32/win32k/include/intddraw.h
URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/subsystems/win32…
==============================================================================
--- branches/reactx/reactos/subsystems/win32/win32k/include/intddraw.h (original)
+++ branches/reactx/reactos/subsystems/win32/win32k/include/intddraw.h Mon Oct 15 13:49:58
2007
@@ -8,6 +8,7 @@
/* From ddraw.c */
extern PDRVFN gpDxFuncs;
+typedef HANDLE (NTAPI* PGD_PGD_DDGETDXHANDLE)(HANDLE, HANDLE, BOOL);
typedef HDC (NTAPI *PGD_DDGETDC(HANDLE, PALETTEENTRY *);
typedef DWORD (NTAPI *PGD_DXGENERICTRUNK)(ULONG_PTR, ULONG_PTR, SIZE_T*, PVOID, SIZE_T*,
PVOID);
typedef DWORD (NTAPI *PGD_DXDDREENABLEDIRECTDRAWOBJECT)(HANDLE, BOOL);
Modified: branches/reactx/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/subsystems/win32…
==============================================================================
--- branches/reactx/reactos/subsystems/win32/win32k/ntddraw/ddraw.c (original)
+++ branches/reactx/reactos/subsystems/win32/win32k/ntddraw/ddraw.c Mon Oct 15 13:49:58
2007
@@ -493,7 +493,20 @@
HANDLE hSurface,
BOOL bRelease)
{
-
+
+ PGD_DDGETDXHANDLE pfnDdGetDxHandle = NULL;
+ INT i;
+
+ DXG_GET_INDEX_FUNCTION(DXG_INDEX_DxDdGetDxHandle, pfnDdGetDxHandle);
+
+ if (pfnDdGetDxHandle == NULL)
+ {
+ DPRINT1("Warring no pfnDdGetDxHandle");
+ return DDHAL_DRIVER_NOTHANDLED;
+ }
+
+ DPRINT1("Calling on dxg.sys pfnDdGetDxHandle");
+ return pfnDdGetDxHandle(hDirectDraw, hSurface, bRelease);
}