mirror of
https://github.com/reactos/reactos.git
synced 2024-08-29 22:58:34 +00:00
Implement GetAndSetDCDWord. Clearing out my code base. This has set here for six months now.
svn path=/trunk/; revision=26443
This commit is contained in:
parent
7b205923df
commit
eff89f2d9a
|
@ -325,11 +325,53 @@ GetRelAbs(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
|
DWORD
|
||||||
|
STDCALL
|
||||||
|
GetAndSetDCDWord( HDC hDC, INT u, DWORD dwIn, DWORD Unk1, DWORD Unk2, DWORD Unk3 )
|
||||||
|
{
|
||||||
|
BOOL Ret = TRUE;
|
||||||
|
// Handle something other than a normal dc object.
|
||||||
|
if (GDI_HANDLE_GET_TYPE(hDC) != GDI_OBJECT_TYPE_DC)
|
||||||
|
{
|
||||||
|
if (GDI_HANDLE_GET_TYPE(hDC) == GDI_OBJECT_TYPE_METADC)
|
||||||
|
return 0; //call MFDRV
|
||||||
|
else
|
||||||
|
{
|
||||||
|
PLDC pLDC = GdiGetLDC(hDC);
|
||||||
|
if ( !pLDC )
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_HANDLE);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
if (pLDC->iType == LDC_EMFLDC)
|
||||||
|
{
|
||||||
|
Ret = TRUE; //call EMFDRV
|
||||||
|
if (Ret)
|
||||||
|
return u;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Ret = NtGdiGetAndSetDCDword( hDC, u, dwIn, (DWORD*) &u );
|
||||||
|
if (Ret)
|
||||||
|
return u;
|
||||||
|
else
|
||||||
|
SetLastError(ERROR_INVALID_HANDLE);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
DWORD
|
DWORD
|
||||||
STDCALL
|
STDCALL
|
||||||
GetDCDWord( HDC hDC, INT u, DWORD Result )
|
GetDCDWord( HDC hDC, INT u, DWORD Result )
|
||||||
{
|
{
|
||||||
BOOL Ret = TRUE; //NtGdiGetDCDword( hDC, u, (DWORD*) &u );
|
BOOL Ret = TRUE; //NtGdiGetDCDword( hDC, u, (DWORD*) &u );
|
||||||
if (!Ret) return Result;
|
if (!Ret) return Result;
|
||||||
else return u;
|
else return u;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue