mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
implement GdiEntry 8, Implement GdiEntry 10
svn path=/trunk/; revision=16843
This commit is contained in:
parent
01918f37b1
commit
6f8996d82e
2 changed files with 39 additions and 25 deletions
|
@ -78,7 +78,8 @@ DdCreateDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal,
|
||||||
NtGdiDeleteDC(newHdc);
|
NtGdiDeleteDC(newHdc);
|
||||||
}
|
}
|
||||||
|
|
||||||
pDirectDrawGlobal->hDD = pDirectDrawGlobalInternal->hDD;
|
/* pDirectDrawGlobal->hDD = pDirectDrawGlobalInternal->hDD; ? */
|
||||||
|
pDirectDrawGlobal->hDD = 0; /* ? */
|
||||||
|
|
||||||
/* test see if we got a handler */
|
/* test see if we got a handler */
|
||||||
if (!pDirectDrawGlobalInternal->hDD)
|
if (!pDirectDrawGlobalInternal->hDD)
|
||||||
|
@ -156,3 +157,37 @@ LPPALETTEENTRY pColorTable
|
||||||
{
|
{
|
||||||
return NtGdiDdGetDC(pColorTable, (HANDLE) pSurfaceLocal->hDDSurface);
|
return NtGdiDdGetDC(pColorTable, (HANDLE) pSurfaceLocal->hDDSurface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*
|
||||||
|
* GDIEntry 8
|
||||||
|
*/
|
||||||
|
BOOL STDCALL DdReleaseDC(
|
||||||
|
LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return NtGdiDdReleaseDC((HANDLE) pSurfaceLocal->hDDSurface);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*
|
||||||
|
* GDIEntry 10
|
||||||
|
*/
|
||||||
|
BOOL
|
||||||
|
STDCALL
|
||||||
|
DdReenableDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal,
|
||||||
|
BOOL *pbNewMode)
|
||||||
|
{
|
||||||
|
if (!pDirectDrawGlobal->hDD)
|
||||||
|
{
|
||||||
|
if (!pDirectDrawGlobalInternal->hDD)
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
return NtGdiDdReenableDirectDrawObject((HANDLE)pDirectDrawGlobalInternal->hDD, pbNewMode);
|
||||||
|
}
|
||||||
|
|
||||||
|
return NtGdiDdReenableDirectDrawObject((HANDLE)pDirectDrawGlobal->hDD, pbNewMode);
|
||||||
|
}
|
||||||
|
|
|
@ -3903,17 +3903,7 @@ BOOL bPrimarySurface
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @unimplemented
|
|
||||||
*/
|
|
||||||
BOOL STDCALL DdReleaseDC(
|
|
||||||
LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal
|
|
||||||
)
|
|
||||||
{
|
|
||||||
UNIMPLEMENTED;
|
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
|
@ -3932,18 +3922,7 @@ DWORD dwOffset
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @unimplemented
|
|
||||||
*/
|
|
||||||
BOOL STDCALL DdReenableDirectDrawObject(
|
|
||||||
LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal,
|
|
||||||
BOOL *pbNewMode
|
|
||||||
)
|
|
||||||
{
|
|
||||||
UNIMPLEMENTED;
|
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
|
|
Loading…
Reference in a new issue