Author: greatlrd
Date: Wed Apr 23 00:45:59 2008
New Revision: 33125
URL:
http://svn.reactos.org/svn/reactos?rev=33125&view=rev
Log:
start setup edd directdraw local
Modified:
trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
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] Wed Apr 23 00:45:59
2008
@@ -24,6 +24,7 @@
ULONG gdwDirectDrawContext;
void dump_edd_directdraw_global(EDD_DIRECTDRAW_GLOBAL *pEddgbl);
EDD_DIRECTDRAW_GLOBAL edd_DdirectDraw_Global;
+EDD_DIRECTDRAW_LOCAL edd_DirectDrawLocalList;
/************************************************************************/
@@ -183,9 +184,16 @@
((PGDIDEVICE)pDC->pPDev)->pEDDgpl = &edd_DdirectDraw_Global;
RtlZeroMemory(&edd_DdirectDraw_Global,sizeof(EDD_DIRECTDRAW_GLOBAL));
+ /* FIXME this should be alloc by win32k */
+ RtlZeroMemory(&edd_DirectDrawLocalList,sizeof(EDD_DIRECTDRAW_LOCAL));
+
/* setup hdev for edd_DdirectDraw_Global xp */
edd_DdirectDraw_Global.hDev = (PVOID)pDC->pPDev;
edd_DdirectDraw_Global.hPDev = (PVOID)pDC->pPDev;
+ edd_DdirectDraw_Global.peDirectDrawLocalList = &edd_DirectDrawLocalList;
+
+ /* setup hdev for edd_DdirectDraw_Local xp */
+ edd_DirectDrawLocalList.peDirectDrawGlobal = &edd_DdirectDraw_Global;
DC_UnlockDc(pDC);
/* get the pfnDdCreateDirectDrawObject after we load the drv */