From d69543779c61e00a14499b6234874960ec05ae49 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 27 Apr 2008 17:00:06 +0000 Subject: [PATCH] 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. svn path=/trunk/; revision=33169 --- reactos/include/reactos/drivers/directx/directxint.h | 2 +- reactos/subsystems/win32/win32k/ntddraw/ddraw.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/include/reactos/drivers/directx/directxint.h b/reactos/include/reactos/drivers/directx/directxint.h index 8b60eb6d75a..3f2df74d709 100644 --- a/reactos/include/reactos/drivers/directx/directxint.h +++ b/reactos/include/reactos/drivers/directx/directxint.h @@ -11,7 +11,7 @@ typedef struct _EDD_DIRECTDRAW_LOCAL // // 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; diff --git a/reactos/subsystems/win32/win32k/ntddraw/ddraw.c b/reactos/subsystems/win32/win32k/ntddraw/ddraw.c index d96c061e7c7..9d7a117ab84 100644 --- a/reactos/subsystems/win32/win32k/ntddraw/ddraw.c +++ b/reactos/subsystems/win32/win32k/ntddraw/ddraw.c @@ -253,6 +253,9 @@ intEnableReactXDriver(PEDD_DIRECTDRAW_GLOBAL pEddgbl, PDC pDC) /* 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); dump_halinfo(&pEddgbl->ddHalInfo);