mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +00:00
partly implement gdi32 Escape
implemented command GETCOLORTABLE and GETEXTENDEDTEXTMETRICS in Escape MS have releae docs over this api in msdn, u can also found docs in nt4 ddk and win98 ddk how this api works. and thanks to Filip and Blight that have explain how this api works time to time, in gdi32 svn path=/trunk/; revision=32628
This commit is contained in:
parent
06471d3eb5
commit
746ac9c644
|
@ -178,17 +178,7 @@ EnumObjects(HDC hdc,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @unimplemented
|
|
||||||
*/
|
|
||||||
int
|
|
||||||
STDCALL
|
|
||||||
Escape(HDC hdc, INT escape, INT in_count, LPCSTR in_data, LPVOID out_data)
|
|
||||||
{
|
|
||||||
UNIMPLEMENTED;
|
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @implemented
|
* @implemented
|
||||||
|
@ -1505,6 +1495,45 @@ GetETM(HDC hdc,
|
||||||
return Ret;
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @unimplemented
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
STDCALL
|
||||||
|
Escape(HDC hdc, INT nEscape, INT cbInput, LPCSTR lpvInData, LPVOID lpvOutData)
|
||||||
|
{
|
||||||
|
int retValue = -1;
|
||||||
|
|
||||||
|
/* FIXME gdi share memory */
|
||||||
|
|
||||||
|
if (nEscape == GETCOLORTABLE)
|
||||||
|
{
|
||||||
|
retValue = GetSystemPaletteEntries(hdc, (UINT)*lpvInData, 1, (LPPALETTEENTRY)lpvOutData);
|
||||||
|
if ( !retValue )
|
||||||
|
{
|
||||||
|
retValue = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* FIXME tempary until Escape are completed */
|
||||||
|
return retValue;
|
||||||
|
}
|
||||||
|
else if (nEscape == GETEXTENDEDTEXTMETRICS)
|
||||||
|
{
|
||||||
|
retValue = (int) GetETM( hdc, (EXTTEXTMETRIC *) lpvOutData) != 0;
|
||||||
|
|
||||||
|
/* FIXME tempary until Escape are completed */
|
||||||
|
return retValue;
|
||||||
|
}
|
||||||
|
else if ( nEscape != QUERYESCSUPPORT )
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
|
return retValue;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue