mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 20:34:59 +00:00
implemented OffsetClipRgn()
svn path=/trunk/; revision=17031
This commit is contained in:
parent
f86b5b132c
commit
fd1eac7f05
1 changed files with 23 additions and 3 deletions
|
@ -187,7 +187,7 @@ int STDCALL NtGdiGetClipBox(HDC hDC,
|
||||||
LPRECT rc)
|
LPRECT rc)
|
||||||
{
|
{
|
||||||
int Ret;
|
int Ret;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
RECT Saferect;
|
RECT Saferect;
|
||||||
|
|
||||||
Ret = IntGdiGetClipBox(hDC, &Saferect);
|
Ret = IntGdiGetClipBox(hDC, &Saferect);
|
||||||
|
@ -327,8 +327,28 @@ int STDCALL NtGdiOffsetClipRgn(HDC hDC,
|
||||||
int XOffset,
|
int XOffset,
|
||||||
int YOffset)
|
int YOffset)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
INT Result;
|
||||||
return 0;
|
DC *dc;
|
||||||
|
|
||||||
|
if(!(dc = DC_LockDc(hDC)))
|
||||||
|
{
|
||||||
|
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||||
|
return ERROR;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(dc->w.hClipRgn != NULL)
|
||||||
|
{
|
||||||
|
Result = NtGdiOffsetRgn(dc->w.hClipRgn,
|
||||||
|
XOffset,
|
||||||
|
YOffset);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Result = NULLREGION;
|
||||||
|
}
|
||||||
|
|
||||||
|
DC_UnlockDc(dc);
|
||||||
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL STDCALL NtGdiPtVisible(HDC hDC,
|
BOOL STDCALL NtGdiPtVisible(HDC hDC,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue