From 4c532d38d2f9968273fc98dad14604be2b7b3a04 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sat, 5 Nov 2005 23:10:43 +0000 Subject: [PATCH] Filling in two more member, and they should be using when u create a new dc with CreateDCA svn path=/trunk/; revision=19023 --- reactos/lib/ddraw/main/ddraw_main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reactos/lib/ddraw/main/ddraw_main.c b/reactos/lib/ddraw/main/ddraw_main.c index 756c1009001..a5ffe14580f 100644 --- a/reactos/lib/ddraw/main/ddraw_main.c +++ b/reactos/lib/ddraw/main/ddraw_main.c @@ -21,6 +21,14 @@ HRESULT WINAPI Main_DirectDraw_Initialize (LPDIRECTDRAW7 iface, LPGUID lpGUID) This->InitializeDraw = TRUE; + RtlZeroMemory(&This->DirectDrawGlobal, sizeof(DDRAWI_DIRECTDRAW_GBL)); + + + + /* cObsolete is undoc in msdn it being use in CreateDCA */ + RtlCopyMemory(&This->DirectDrawGlobal.cObsolete,&"DISPLAY",7); + RtlCopyMemory(&This->DirectDrawGlobal.cDriverName,&"DISPLAY",7); + /* Setup the lpExclusiveOwner struct in msdn this struct member is undoc I am using there name to figout which info it should be fild with My hardware drv does not support call to SetExusive so I can not