mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- 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
This commit is contained in:
parent
a0e07982e6
commit
8ec3b717ee
1 changed files with 5 additions and 16 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue