mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
activate PDD_DIRECTDRAW for GDIOBJ_LockObj so it does not fail if it is GDI_OBJECT_TYPE_DIRECTDRAW request. Thx w3seek for his guiding how todo it.
svn path=/trunk/; revision=18276
This commit is contained in:
parent
09f3f08c6d
commit
24269c114d
3 changed files with 14 additions and 9 deletions
|
@ -61,7 +61,7 @@ typedef struct
|
||||||
PDD_SURFCB_UNLOCK DdUnlockD3DBuffer;
|
PDD_SURFCB_UNLOCK DdUnlockD3DBuffer;
|
||||||
} DD_DIRECTDRAW, *PDD_DIRECTDRAW;
|
} DD_DIRECTDRAW, *PDD_DIRECTDRAW;
|
||||||
|
|
||||||
BOOL FASTCALL DD_Cleanup(PDD_DIRECTDRAW pDD);
|
BOOL INTERNAL_CALL DD_Cleanup(PVOID pDD);
|
||||||
BOOL FASTCALL DDSURF_Cleanup(PDD_SURFACE pDDSurf);
|
BOOL INTERNAL_CALL DDSURF_Cleanup(PVOID pDDSurf);
|
||||||
|
|
||||||
#endif /* _INT_W32k_DDRAW */
|
#endif /* _INT_W32k_DDRAW */
|
||||||
|
|
|
@ -17,9 +17,10 @@
|
||||||
/* DIRECT DRAW OBJECT */
|
/* DIRECT DRAW OBJECT */
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
|
|
||||||
BOOL FASTCALL
|
BOOL INTERNAL_CALL
|
||||||
DD_Cleanup(PDD_DIRECTDRAW pDD)
|
DD_Cleanup(PVOID ObjectBody)
|
||||||
{
|
{
|
||||||
|
PDD_DIRECTDRAW pDD = (PDD_DIRECTDRAW)ObjectBody;
|
||||||
pDD->DrvDisableDirectDraw(pDD->Global.dhpdev);
|
pDD->DrvDisableDirectDraw(pDD->Global.dhpdev);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -50,6 +51,8 @@ HANDLE STDCALL NtGdiDdCreateDirectDrawObject(
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
BOOL success = pDC->DriverFunctions.EnableDirectDraw(
|
BOOL success = pDC->DriverFunctions.EnableDirectDraw(
|
||||||
pDC->PDev, &callbacks, &surface_callbacks, &palette_callbacks);
|
pDC->PDev, &callbacks, &surface_callbacks, &palette_callbacks);
|
||||||
|
|
||||||
|
@ -193,10 +196,12 @@ BOOL STDCALL NtGdiDdQueryDirectDrawObject(
|
||||||
/* SURFACE OBJECT */
|
/* SURFACE OBJECT */
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
|
|
||||||
BOOL FASTCALL
|
BOOL INTERNAL_CALL
|
||||||
DDSURF_Cleanup(PDD_SURFACE pDDSurf)
|
DDSURF_Cleanup(PVOID pDDSurf)
|
||||||
{
|
{
|
||||||
//FIXME: implement
|
/* FIXME: implement
|
||||||
|
* PDD_SURFACE pDDSurf = PVOID pDDSurf
|
||||||
|
*/
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -83,8 +83,8 @@ GDI_OBJ_INFO ObjInfo[] =
|
||||||
{GDI_OBJECT_TYPE_PEN, sizeof(GDIBRUSHOBJ), GDI_CleanupDummy},
|
{GDI_OBJECT_TYPE_PEN, sizeof(GDIBRUSHOBJ), GDI_CleanupDummy},
|
||||||
{GDI_OBJECT_TYPE_FONT, sizeof(TEXTOBJ), GDI_CleanupDummy},
|
{GDI_OBJECT_TYPE_FONT, sizeof(TEXTOBJ), GDI_CleanupDummy},
|
||||||
{GDI_OBJECT_TYPE_DCE, sizeof(DCE), DCE_Cleanup},
|
{GDI_OBJECT_TYPE_DCE, sizeof(DCE), DCE_Cleanup},
|
||||||
/*{GDI_OBJECT_TYPE_DIRECTDRAW, sizeof(DD_DIRECTDRAW), DD_Cleanup},
|
{GDI_OBJECT_TYPE_DIRECTDRAW, sizeof(DD_DIRECTDRAW), DD_Cleanup},
|
||||||
{GDI_OBJECT_TYPE_DD_SURFACE, sizeof(DD_SURFACE), DDSURF_Cleanup},*/
|
{GDI_OBJECT_TYPE_DD_SURFACE, sizeof(DD_SURFACE), DDSURF_Cleanup},
|
||||||
{GDI_OBJECT_TYPE_EXTPEN, 0, GDI_CleanupDummy},
|
{GDI_OBJECT_TYPE_EXTPEN, 0, GDI_CleanupDummy},
|
||||||
{GDI_OBJECT_TYPE_METADC, 0, GDI_CleanupDummy},
|
{GDI_OBJECT_TYPE_METADC, 0, GDI_CleanupDummy},
|
||||||
{GDI_OBJECT_TYPE_METAFILE, 0, GDI_CleanupDummy},
|
{GDI_OBJECT_TYPE_METAFILE, 0, GDI_CleanupDummy},
|
||||||
|
|
Loading…
Reference in a new issue