summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxglib/nxglib_fillrectangle.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-12-02 20:02:59 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-12-02 20:02:59 +0000
commitaebaefc303f12beb92c4da219411bdb00aa4e03c (patch)
tree770fd1403c0aaf22a23220a4f95f689de9f8cf70 /nuttx/graphics/nxglib/nxglib_fillrectangle.c
parent124c331605b174afc08f7ef498209952b4a1dbc5 (diff)
downloadpx4-nuttx-aebaefc303f12beb92c4da219411bdb00aa4e03c.tar.gz
px4-nuttx-aebaefc303f12beb92c4da219411bdb00aa4e03c.tar.bz2
px4-nuttx-aebaefc303f12beb92c4da219411bdb00aa4e03c.zip
Don't keep sizes in rectangles
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1392 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxglib/nxglib_fillrectangle.c')
-rw-r--r--nuttx/graphics/nxglib/nxglib_fillrectangle.c4
1 files changed, 2 insertions, 2 deletions
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 */