Check the update rect, not the region. The region might contain only non-client
authorGé van Geldorp <ge@gse.nl>
Sun, 4 Dec 2005 22:28:29 +0000 (22:28 +0000)
committerGé van Geldorp <ge@gse.nl>
Sun, 4 Dec 2005 22:28:29 +0000 (22:28 +0000)
parts

svn path=/trunk/; revision=19891

reactos/subsys/win32k/ntuser/painting.c

index acfcf84..0f8d1c9 100644 (file)
@@ -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_);
 
 CLEANUP:
    DPRINT("Leave NtUserGetUpdateRect, ret=%i\n",_ret_);