- Made the argument to W32kIsEmptyRect constant; fixes some warnings.

svn path=/trunk/; revision=5291
This commit is contained in:
David Welch 2003-07-27 18:34:48 +00:00
parent 938493d413
commit f858d1a51d
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ W32kSetRect(PRECT Rect, INT left, INT top, INT right, INT bottom);
BOOL STDCALL BOOL STDCALL
W32kSetEmptyRect(PRECT Rect); W32kSetEmptyRect(PRECT Rect);
BOOL STDCALL BOOL STDCALL
W32kIsEmptyRect(PRECT Rect); W32kIsEmptyRect(const RECT* Rect);
BOOL STDCALL BOOL STDCALL
W32kIntersectRect(PRECT Dest, const RECT* Src1, const RECT* Src2); W32kIntersectRect(PRECT Dest, const RECT* Src1, const RECT* Src2);
BOOL STDCALL BOOL STDCALL

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: rect.c,v 1.4 2003/05/18 17:16:18 ea Exp $ */ /* $Id: rect.c,v 1.5 2003/07/27 18:34:47 dwelch Exp $ */
#include <windows.h> #include <windows.h>
#include <ddk/ntddk.h> #include <ddk/ntddk.h>
#include <win32k/region.h> #include <win32k/region.h>
@ -79,7 +79,7 @@ W32kSetEmptyRect(PRECT Rect)
} }
BOOL STDCALL BOOL STDCALL
W32kIsEmptyRect(PRECT Rect) W32kIsEmptyRect(const RECT* Rect)
{ {
return(Rect->left >= Rect->right || Rect->top >= Rect->bottom); return(Rect->left >= Rect->right || Rect->top >= Rect->bottom);
} }