mirror of
https://github.com/reactos/reactos.git
synced 2025-07-14 16:34:16 +00:00
Handle ClipRegion == 1 as a special case in NtUserGetDCEx()
svn path=/trunk/; revision=6851
This commit is contained in:
parent
c2e130256e
commit
14f190d1d4
1 changed files with 9 additions and 13 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: windc.c,v 1.40 2003/12/02 19:58:54 navaraf Exp $
|
/* $Id: windc.c,v 1.41 2003/12/03 08:19:03 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -440,28 +440,24 @@ NtUserGetDCEx(HWND hWnd, HANDLE ClipRegion, ULONG Flags)
|
||||||
Flags |= DCX_INTERSECTRGN;
|
Flags |= DCX_INTERSECTRGN;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
if (ClipRegion == (HRGN) 1)
|
||||||
if (ClipRegion == (HRGN)1)
|
|
||||||
{
|
{
|
||||||
if (!(Flags & DCX_WINDOW))
|
if (!(Flags & DCX_WINDOW))
|
||||||
{
|
{
|
||||||
ClipRegion = UnsafeIntCreateRectRgnIndirect(&Window->ClientRect);
|
Dce->hClipRgn = UnsafeIntCreateRectRgnIndirect(&Window->ClientRect);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ClipRegion = UnsafeIntCreateRectRgnIndirect(&Window->WindowRect);
|
Dce->hClipRgn = UnsafeIntCreateRectRgnIndirect(&Window->WindowRect);
|
||||||
}
|
}
|
||||||
NtGdiOffsetRgn(ClipRegion,
|
|
||||||
-Window->WindowRect.left,
|
|
||||||
-Window->WindowRect.top);
|
|
||||||
}
|
}
|
||||||
*/
|
else if (NULL != ClipRegion)
|
||||||
|
|
||||||
if (NULL != ClipRegion)
|
|
||||||
{
|
{
|
||||||
Dce->hClipRgn = NtGdiCreateRectRgn(0, 0, 0, 0);
|
Dce->hClipRgn = NtGdiCreateRectRgn(0, 0, 0, 0);
|
||||||
if(Dce->hClipRgn)
|
if (Dce->hClipRgn)
|
||||||
NtGdiCombineRgn(Dce->hClipRgn, ClipRegion, NULL, RGN_COPY);
|
{
|
||||||
|
NtGdiCombineRgn(Dce->hClipRgn, ClipRegion, NULL, RGN_COPY);
|
||||||
|
}
|
||||||
NtGdiDeleteObject(ClipRegion);
|
NtGdiDeleteObject(ClipRegion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue