Implement GdiEntry14 (party tested see older commit msg)

svn path=/trunk/; revision=16875
This commit is contained in:
Magnus Olsen 2005-07-29 17:11:11 +00:00
parent af45d81b0e
commit b2c6d0e0d9
2 changed files with 39 additions and 18 deletions

View file

@ -91,6 +91,9 @@ DdCreateDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal,
return TRUE;
}
/*
* @implemented
*
@ -116,6 +119,8 @@ DdDeleteDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal)
}
/*
* @implemented
*
@ -171,6 +176,8 @@ LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal
return NtGdiDdReleaseDC((HANDLE) pSurfaceLocal->hDDSurface);
}
/*
* @implemented
*
@ -193,6 +200,10 @@ DdReenableDirectDrawObject(LPDDRAWI_DIRECTDRAW_GBL pDirectDrawGlobal,
return NtGdiDdReenableDirectDrawObject((HANDLE)pDirectDrawGlobal->hDD, pbNewMode);
}
/*
* @implemented
*
@ -218,6 +229,34 @@ DdQueryDisplaySettingsUniqueness()
return RemberDdQueryDisplaySettingsUniquenessID;
}
/*
* @implemented
*
* GDIEntry 14
*/
HANDLE
STDCALL
DdGetDxHandle(LPDDRAWI_DIRECTDRAW_LCL pDDraw,
LPDDRAWI_DDRAWSURFACE_LCL pSurface,
BOOL bRelease)
{
if (pSurface)
{
return ((HANDLE) NtGdiDdGetDxHandle(NULL, (HANDLE)pSurface->hDDSurface, bRelease));
}
if (!pDDraw->lpGbl->hDD)
{
if (!pDirectDrawGlobalInternal->hDD)
{
return FALSE;
}
return ((HANDLE) NtGdiDdGetDxHandle( (HANDLE) pDirectDrawGlobalInternal->hDD, (HANDLE) pSurface->hDDSurface, bRelease));
}
return ((HANDLE) NtGdiDdGetDxHandle((HANDLE)pDDraw->lpGbl->hDD, (HANDLE) pSurface->hDDSurface, bRelease));
}
/*
* @implemented

View file

@ -3938,24 +3938,6 @@ LPDDRAWI_DDRAWSURFACE_LCL pSurfaceTo
}
/*
* @unimplemented
*/
HANDLE STDCALL DdGetDxHandle(
LPDDRAWI_DIRECTDRAW_LCL pDDraw,
LPDDRAWI_DDRAWSURFACE_LCL pSurface,
BOOL bRelease
)
{
UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/*
* @unimplemented
*/