2007-10-24 11:05:44 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS kernel
|
|
|
|
* PURPOSE: Native driver for dxg implementation
|
|
|
|
* FILE: drivers/directx/dxg/main.c
|
|
|
|
* PROGRAMER: Magnus olsen (magnus@greatlord.com)
|
|
|
|
* REVISION HISTORY:
|
2007-12-30 22:41:31 +00:00
|
|
|
* 30/12-2007 Magnus Olsen
|
2007-10-24 11:05:44 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2007-12-30 22:41:31 +00:00
|
|
|
#include <dxg_int.h>
|
2007-10-24 11:05:44 +00:00
|
|
|
|
|
|
|
|
2007-12-30 22:41:31 +00:00
|
|
|
PDD_SURFACE_LOCAL
|
|
|
|
STDCALL
|
|
|
|
DxDdLockDirectDrawSurface(HANDLE hDdSurface)
|
|
|
|
{
|
|
|
|
PDD_ENTRY pObject;
|
|
|
|
PDD_SURFACE_LOCAL pSurfacelcl = NULL;
|
|
|
|
|
|
|
|
pObject = DdHmgLock(hDdSurface, 2, 0);
|
|
|
|
if (pObject != NULL)
|
|
|
|
{
|
|
|
|
pSurfacelcl = (PDD_SURFACE_LOCAL)((PBYTE)pObject + sizeof(PDD_ENTRY));
|
|
|
|
}
|
|
|
|
|
|
|
|
return pSurfacelcl;
|
|
|
|
}
|
|
|
|
|
2007-10-24 11:05:44 +00:00
|
|
|
|