From 019f7a26403f9f9f4aa8fc91a14bf199d3c06b6c Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 3 Dec 2008 00:23:28 +0000 Subject: Need to be consistent: rectangle endpoints are within rectangle git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1395 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/graphics/nxglib/nxglib_nullrect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nuttx') diff --git a/nuttx/graphics/nxglib/nxglib_nullrect.c b/nuttx/graphics/nxglib/nxglib_nullrect.c index 4895a2f6c..dad690cf0 100644 --- a/nuttx/graphics/nxglib/nxglib_nullrect.c +++ b/nuttx/graphics/nxglib/nxglib_nullrect.c @@ -77,6 +77,6 @@ boolean nxgl_nullrect(FAR const struct nxgl_rect_s *rect) { - return (rect->pt1.x >= rect->pt2.x || rect->pt1.y >= rect->pt2.y); + return (rect->pt1.x > rect->pt2.x || rect->pt1.y > rect->pt2.y); } -- cgit v1.2.3