mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 20:30:04 +00:00
When using the parent clip region, translate it to child coordinates.
Fixes bug #83. svn path=/trunk/; revision=8045
This commit is contained in:
parent
363a9ebe63
commit
a4b76f805d
|
@ -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.54 2004/02/04 22:59:04 gvg Exp $
|
/* $Id: windc.c,v 1.55 2004/02/05 23:16:37 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -255,6 +255,18 @@ DceUpdateVisRgn(DCE *Dce, PWINDOW_OBJECT Window, ULONG Flags)
|
||||||
}
|
}
|
||||||
hRgnVisible = DceGetVisRgn(Parent->Self, DcxFlags,
|
hRgnVisible = DceGetVisRgn(Parent->Self, DcxFlags,
|
||||||
Window->Self, Flags);
|
Window->Self, Flags);
|
||||||
|
if (0 == (Flags & DCX_WINDOW))
|
||||||
|
{
|
||||||
|
NtGdiOffsetRgn(hRgnVisible,
|
||||||
|
Parent->ClientRect.left - Window->ClientRect.left,
|
||||||
|
Parent->ClientRect.top - Window->ClientRect.top);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
NtGdiOffsetRgn(hRgnVisible,
|
||||||
|
Parent->WindowRect.left - Window->WindowRect.left,
|
||||||
|
Parent->WindowRect.top - Window->WindowRect.top);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue