mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 12:29:56 +00:00
[NtUser]
- Part of CORE-13110. Set DC window rectangle and pointer. svn path=/trunk/; revision=75293
This commit is contained in:
parent
b1f132e660
commit
a1938e7ca3
1 changed files with 7 additions and 15 deletions
|
@ -146,30 +146,22 @@ DceSetDrawable( PWND Window OPTIONAL,
|
||||||
ULONG Flags,
|
ULONG Flags,
|
||||||
BOOL SetClipOrigin)
|
BOOL SetClipOrigin)
|
||||||
{
|
{
|
||||||
DC *dc = DC_LockDc(hDC);
|
RECTL rect;
|
||||||
if(!dc)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (Window == NULL)
|
if (Window)
|
||||||
{
|
|
||||||
dc->ptlDCOrig.x = 0;
|
|
||||||
dc->ptlDCOrig.y = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
if (Flags & DCX_WINDOW)
|
if (Flags & DCX_WINDOW)
|
||||||
{
|
{
|
||||||
dc->ptlDCOrig.x = Window->rcWindow.left;
|
rect = Window->rcWindow;
|
||||||
dc->ptlDCOrig.y = Window->rcWindow.top;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dc->ptlDCOrig.x = Window->rcClient.left;
|
rect = Window->rcClient;
|
||||||
dc->ptlDCOrig.y = Window->rcClient.top;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dc->fs |= DC_FLAG_DIRTY_RAO;
|
|
||||||
DC_UnlockDc(dc);
|
/* Set DC Origin and Window Rectangle */
|
||||||
|
GreSetDCOrg( hDC, rect.left, rect.top, &rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue