adding some comment after review how it works in windows. I doing my own syscall in windows 2000 to see how it act and base my knowledges of that to correct some part of win32k dx handling.

svn path=/trunk/; revision=25786
This commit is contained in:
Magnus Olsen 2007-02-11 15:19:22 +00:00
parent 31ba4573a4
commit 70f870bb70

View file

@ -52,6 +52,19 @@ DD_Cleanup(PVOID ObjectBody)
return TRUE; return TRUE;
} }
/* Documations how it works in windows and what we should do
*
* HANDLE NtGdiDdCreateDirectDrawObject(HDC hdc)
*
* Use CreateDCW(LDisplay,NULL,NULL,NULL); or some thing else to create a DC.
.*
* A NULL DC are not accpect it return 0 as error
*
* How the interal works see msdn and ddk that is egunt inforamtions to figour or see reactos
* source code. ReactOS interal working diffent here what windows does.
*/
HANDLE STDCALL HANDLE STDCALL
NtGdiDdCreateDirectDrawObject(HDC hdc) NtGdiDdCreateDirectDrawObject(HDC hdc)
{ {
@ -80,7 +93,6 @@ NtGdiDdCreateDirectDrawObject(HDC hdc)
if (hdc == NULL) if (hdc == NULL)
{ {
DPRINT1("FIXME hdc is NULL \n");
return NULL; return NULL;
} }
} }
@ -184,6 +196,8 @@ NtGdiDdCreateDirectDrawObject(HDC hdc)
return hDirectDraw; return hDirectDraw;
} }
BOOL STDCALL BOOL STDCALL
NtGdiDdDeleteDirectDrawObject( HANDLE hDirectDrawLocal) NtGdiDdDeleteDirectDrawObject( HANDLE hDirectDrawLocal)
{ {