- Minor correction

svn path=/trunk/; revision=8287
This commit is contained in:
Filip Navara 2004-02-21 13:51:13 +00:00
parent 717c7d0333
commit 391292e419
2 changed files with 4 additions and 5 deletions

View file

@ -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.68 2004/02/21 13:13:26 navaraf Exp $
* $Id: painting.c,v 1.69 2004/02/21 13:51:13 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -505,8 +505,7 @@ IntRedrawWindow(PWINDOW_OBJECT Window, const RECT* UpdateRect, HRGN UpdateRgn,
* Repaint and erase windows if needed.
*/
if ((Flags & (RDW_ERASENOW | RDW_UPDATENOW)) &&
IntIsWindowVisible(Window))
if (Flags & (RDW_ERASENOW | RDW_UPDATENOW))
{
IntPaintWindows(Window, Flags);
}

View file

@ -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: winpos.c,v 1.94 2004/02/21 13:37:26 gvg Exp $
/* $Id: winpos.c,v 1.95 2004/02/21 13:51:13 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -1022,7 +1022,7 @@ WinPosSetWindowPos(HWND Wnd, HWND WndInsertAfter, INT x, INT y, INT cx,
NtGdiDeleteObject(VisAfter);
}
if (!(WinPos.flags & SWP_NOREDRAW))
if (!(WinPos.flags & SWP_NOREDRAW) && IntIsWindowVisible(Window))
{
IntRedrawWindow(Window, NULL, 0, RDW_ALLCHILDREN | RDW_ERASENOW);
}