From aebaefc303f12beb92c4da219411bdb00aa4e03c Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 2 Dec 2008 20:02:59 +0000 Subject: Don't keep sizes in rectangles git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1392 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/graphics/nxglib/nxglib_fillrectangle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nuttx/graphics/nxglib/nxglib_fillrectangle.c') diff --git a/nuttx/graphics/nxglib/nxglib_fillrectangle.c b/nuttx/graphics/nxglib/nxglib_fillrectangle.c index 2ed923b95..ee8b6dd01 100644 --- a/nuttx/graphics/nxglib/nxglib_fillrectangle.c +++ b/nuttx/graphics/nxglib/nxglib_fillrectangle.c @@ -104,8 +104,8 @@ void NXGL_FUNCNAME(nxgl_fillrectangle,NXGLIB_SUFFIX) /* Get the dimensions of the rectange to fill in pixels */ - width = rect->pt2.x - rect->pt1.x; - rows = rect->pt2.y - rect->pt1.y; + width = rect->pt2.x - rect->pt1.x + 1; + rows = rect->pt2.y - rect->pt1.y + 1; /* Get the address of the first byte in the first line to write */ -- cgit v1.2.3