mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- Partially implement CancelDC, DrawEscape
- Add check of params for EnumObjects, SetMetaFileBitsEx svn path=/trunk/; revision=40606
This commit is contained in:
parent
03fef42adf
commit
352fae1736
1 changed files with 34 additions and 14 deletions
|
@ -78,9 +78,8 @@ BOOL
|
||||||
WINAPI
|
WINAPI
|
||||||
CancelDC(HDC hdc)
|
CancelDC(HDC hdc)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
/* FIXME Sharememory */
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
return NtGdiCancelDC(hdc);
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -90,13 +89,12 @@ CancelDC(HDC hdc)
|
||||||
int
|
int
|
||||||
WINAPI
|
WINAPI
|
||||||
DrawEscape(HDC hdc,
|
DrawEscape(HDC hdc,
|
||||||
int a1,
|
INT nEscape,
|
||||||
int a2,
|
INT cbInput,
|
||||||
LPCSTR a3)
|
LPCSTR lpszInData)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
/* FIXME Sharememory */
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
return NtGdiDrawEscape(hdc, nEscape, cbInput, (LPSTR) lpszInData);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -106,10 +104,21 @@ DrawEscape(HDC hdc,
|
||||||
int
|
int
|
||||||
WINAPI
|
WINAPI
|
||||||
EnumObjects(HDC hdc,
|
EnumObjects(HDC hdc,
|
||||||
int a1,
|
int nObjectType,
|
||||||
GOBJENUMPROC a2,
|
GOBJENUMPROC lpObjectFunc,
|
||||||
LPARAM a3)
|
LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
switch (nObjectType)
|
||||||
|
{
|
||||||
|
case OBJ_BRUSH:
|
||||||
|
case OBJ_PEN:
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -182,10 +191,21 @@ SetBoundsRect(HDC hdc,
|
||||||
HMETAFILE
|
HMETAFILE
|
||||||
WINAPI
|
WINAPI
|
||||||
SetMetaFileBitsEx(
|
SetMetaFileBitsEx(
|
||||||
UINT a0,
|
UINT size,
|
||||||
CONST BYTE *a1
|
CONST BYTE *lpData
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
const METAHEADER *mh_in = (const METAHEADER *)lpData;
|
||||||
|
|
||||||
|
if (size & 1) return 0;
|
||||||
|
|
||||||
|
if (!size || mh_in->mtType != METAFILE_MEMORY || mh_in->mtVersion != 0x300 ||
|
||||||
|
mh_in->mtHeaderSize != sizeof(METAHEADER) / 2)
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_DATA);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
UNIMPLEMENTED;
|
UNIMPLEMENTED;
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue