From 7479009d8cee81adce789d2da4ed1d103aee333f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Tue, 9 Sep 2003 20:06:58 +0000 Subject: [PATCH] Properly offset client-relative update rectangle svn path=/trunk/; revision=6029 --- reactos/subsys/win32k/ntuser/painting.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/painting.c b/reactos/subsys/win32k/ntuser/painting.c index 0c74f5201d0..c2db8947ee6 100644 --- a/reactos/subsys/win32k/ntuser/painting.c +++ b/reactos/subsys/win32k/ntuser/painting.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: painting.c,v 1.31 2003/09/09 09:39:21 gvg Exp $ +/* $Id: painting.c,v 1.32 2003/09/09 20:06:58 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -507,9 +507,10 @@ PaintRedrawWindow( PWINDOW_OBJECT Window, } return TRUE; } + NtGdiOffsetRect(&Rect2, Pt.x, Pt.y); if (NULL == Window->UpdateRegion) { - Window->UpdateRegion = + Window->UpdateRegion = UnsafeIntCreateRectRgnIndirect(&Rect2); } else