Author: greatlrd
Date: Mon Oct 15 12:42:47 2007
New Revision: 29594
URL:
http://svn.reactos.org/svn/reactos?rev=29594&view=rev
Log:
adding 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 12:42:47
2007
@@ -8,6 +8,7 @@
/* From ddraw.c */
extern PDRVFN gpDxFuncs;
+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);
typedef DWORD (NTAPI *PGD_DXDDGETDRIVERINFO)(HANDLE, PDD_GETDRIVERINFODATA);
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 12:42:47
2007
@@ -469,7 +469,19 @@
NtGdiDdGetDC(HANDLE hSurface,
PALETTEENTRY *puColorTable)
{
-
+ PGD_DDGETDC pfnDdGetDC = NULL;
+ INT i;
+
+ DXG_GET_INDEX_FUNCTION(DXG_INDEX_DxDdGetDC, pfnDdGetDC);
+
+ if (pfnDdGetDC == NULL)
+ {
+ DPRINT1("Warring no pfnDdGetDC");
+ return DDHAL_DRIVER_NOTHANDLED;
+ }
+
+ DPRINT1("Calling on dxg.sys pfnDdGetDC");
+ return pfnDdGetDC(hSurface, puColorTable);
}
/************************************************************************/