From 8ec3b717eec68b832da2acc643f2f9aeaf903152 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 28 Jun 2007 18:57:24 +0000 Subject: [PATCH] - remove hack from co_WinPosSetWindowPos() fixes bug 902 it doesn't reintroduce bug 735, wich seems to be fixed. See issue #902,735 for more details. svn path=/trunk/; revision=27313 --- .../subsystems/win32/win32k/ntuser/winpos.c | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/winpos.c b/reactos/subsystems/win32/win32k/ntuser/winpos.c index 40eb1f96d19..12cc6619ec3 100644 --- a/reactos/subsystems/win32/win32k/ntuser/winpos.c +++ b/reactos/subsystems/win32/win32k/ntuser/winpos.c @@ -1223,22 +1223,11 @@ co_WinPosSetWindowPos( } if (RgnType != ERROR && RgnType != NULLREGION) { - if (Window->Parent) - { - NtGdiOffsetRgn(DirtyRgn, - Window->WindowRect.left - Window->Parent->ClientRect.left, - Window->WindowRect.top - Window->Parent->ClientRect.top); - co_UserRedrawWindow(Window->Parent, NULL, DirtyRgn, - RDW_ERASE | RDW_FRAME | RDW_INVALIDATE | RDW_ALLCHILDREN); - } - else - { - NtGdiOffsetRgn(DirtyRgn, - Window->WindowRect.left - Window->ClientRect.left, - Window->WindowRect.top - Window->ClientRect.top); - co_UserRedrawWindow(Window, NULL, DirtyRgn, - RDW_ERASE | RDW_FRAME | RDW_INVALIDATE | RDW_ALLCHILDREN); - } + NtGdiOffsetRgn(DirtyRgn, + Window->WindowRect.left - Window->ClientRect.left, + Window->WindowRect.top - Window->ClientRect.top); + co_UserRedrawWindow(Window, NULL, DirtyRgn, + RDW_ERASE | RDW_FRAME | RDW_INVALIDATE | RDW_ALLCHILDREN); } NtGdiDeleteObject(DirtyRgn); }