Author: greatlrd
Date: Sun Apr 27 12:00:06 2008
New Revision: 33169
URL:
http://svn.reactos.org/svn/reactos?rev=33169&view=rev
Log:
Getting the pain in the ass api DxDdCreateDirectDrawObject inside ms dxg.sys working it is
now returning info now
it needs a negtive value set in struct edd_directdraw_global member llAssertModeTimeout.
Modified:
trunk/reactos/include/reactos/drivers/directx/directxint.h
trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
Modified: trunk/reactos/include/reactos/drivers/directx/directxint.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/drivers/di…
==============================================================================
--- trunk/reactos/include/reactos/drivers/directx/directxint.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/drivers/directx/directxint.h [iso-8859-1] Sun Apr 27
12:00:06 2008
@@ -11,7 +11,7 @@
//
// GDI Object Header
//
- DD_BASEOBJECT pobj;
+/* 0x00 */ DD_BASEOBJECT pobj; // verify it match windows xp
/* 0x10 */ struct _EDD_DIRECTDRAW_GLOBAL * peDirectDrawGlobal; // verify it match
windows xp
/* 0x14 */ struct _EDD_SURFACE * peSurface_DdList;
/* 0x18 */ ULONG unk_018;
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] Sun Apr 27 12:00:06
2008
@@ -252,6 +252,9 @@
/* setup missing data in ddHalInfo */
//pEddgbl->ddHalInfo.GetDriverInfo =
(PVOID)pDev->DriverFunctions.GetDirectDrawInfo;
+
+ /* FIXME : hack ? it will let us DxDdQueryDirectDrawObject if the llAssertModeTimeout
contain negtive value -1*/
+ pEddgbl->llAssertModeTimeout.QuadPart = -1;
/* FIXME : remove this when we are done with debuging of dxg */
dump_edd_directdraw_global(pEddgbl);