Author: greatlrd
Date: Fri Apr 25 00:47:32 2008
New Revision: 33138
URL:
http://svn.reactos.org/svn/reactos?rev=33138&view=rev
Log:
adding more debug output for dx
Modified:
trunk/reactos/subsystems/win32/win32k/include/intddraw.h
trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c
Modified: trunk/reactos/subsystems/win32/win32k/include/intddraw.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/intddraw.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/intddraw.h [iso-8859-1] Fri Apr 25
00:47:32 2008
@@ -122,4 +122,7 @@
BOOL FASTCALL IntGetDeviceGammaRamp(HDEV hPDev, PGAMMARAMP Ramp);
BOOL FASTCALL IntSetDeviceGammaRamp(HDEV hPDev, PGAMMARAMP Ramp, BOOL);
+/* Debug function oly for win32k dx */
+void dump_edd_directdraw_global(EDD_DIRECTDRAW_GLOBAL *pEddgbl);
+
#endif /* _INT_W32k_DDRAW */
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c [iso-8859-1] Fri Apr 25 00:47:32
2008
@@ -22,7 +22,7 @@
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl];
HANDLE ghDxGraphics = NULL;
ULONG gdwDirectDrawContext;
-void dump_edd_directdraw_global(EDD_DIRECTDRAW_GLOBAL *pEddgbl);
+
EDD_DIRECTDRAW_GLOBAL edd_DdirectDraw_Global;
EDD_DIRECTDRAW_LOCAL edd_DirectDrawLocalList;
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntddraw/dxeng.c [iso-8859-1] Fri Apr 25 00:47:32
2008
@@ -297,6 +297,10 @@
DPRINT1("ReactX Calling : DxEngGetHdevData DXEGSHDEVDATA : %ld\n", Type);
+#if 1
+ DPRINT1("HDEV hDev %08lx\n", hDev);
+#endif
+
switch ( Type )
{
case DxEGShDevData_Surface:
@@ -330,6 +334,7 @@
case DxEGShDevData_eddg:
DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_eddg\n");
retVal = (DWORD) PDev->pEDDgpl;
+ dump_edd_directdraw_global(PDev->pEDDgpl);
break;
case DxEGShDevData_dd_nCount:
DPRINT1("requested DXEGSHDEVDATA DxEGShDevData_dd_nCount\n");
@@ -381,7 +386,11 @@
break;
}
- return retVal;
+#if 1
+ DPRINT1("return value %08lx\n", retVal);
+#endif
+
+ return retVal;
}