mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
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:
parent
31ba4573a4
commit
70f870bb70
1 changed files with 15 additions and 1 deletions
|
@ -52,6 +52,19 @@ DD_Cleanup(PVOID ObjectBody)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/* Documations how it works in windows and what we should do
|
||||
*
|
||||
* HANDLE NtGdiDdCreateDirectDrawObject(HDC hdc)
|
||||
*
|
||||
* Use CreateDCW(L”Display”,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
|
||||
NtGdiDdCreateDirectDrawObject(HDC hdc)
|
||||
{
|
||||
|
@ -80,7 +93,6 @@ NtGdiDdCreateDirectDrawObject(HDC hdc)
|
|||
|
||||
if (hdc == NULL)
|
||||
{
|
||||
DPRINT1("FIXME hdc is NULL \n");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -184,6 +196,8 @@ NtGdiDdCreateDirectDrawObject(HDC hdc)
|
|||
return hDirectDraw;
|
||||
}
|
||||
|
||||
|
||||
|
||||
BOOL STDCALL
|
||||
NtGdiDdDeleteDirectDrawObject( HANDLE hDirectDrawLocal)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue