From e44b6503a8814edbaeb75b8ac1f9f0d63a4df291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sun, 4 Dec 2005 22:28:29 +0000 Subject: [PATCH] Check the update rect, not the region. The region might contain only non-client parts svn path=/trunk/; revision=19891 --- reactos/subsys/win32k/ntuser/painting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsys/win32k/ntuser/painting.c b/reactos/subsys/win32k/ntuser/painting.c index acfcf845aa8..0f8d1c9cdbb 100644 --- a/reactos/subsys/win32k/ntuser/painting.c +++ b/reactos/subsys/win32k/ntuser/painting.c @@ -995,7 +995,7 @@ NtUserGetUpdateRect(HWND hWnd, LPRECT UnsafeRect, BOOL bErase) } } - RETURN(Window->UpdateRegion != NULL); + RETURN(!IntGdiIsEmptyRect(&Rect)); CLEANUP: DPRINT("Leave NtUserGetUpdateRect, ret=%i\n",_ret_);