summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxglib
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-04-23 03:29:51 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-04-23 03:29:51 +0000
commitc44875bf6618c6785ef58a734f47155ece14a30f (patch)
treefee9ac9d15177db27956eda28e54d36e7cd90f34 /nuttx/graphics/nxglib
parent72c0c33d10e26f4ac9026c66cd3cf69478a31bc9 (diff)
downloadnuttx-c44875bf6618c6785ef58a734f47155ece14a30f.tar.gz
nuttx-c44875bf6618c6785ef58a734f47155ece14a30f.tar.bz2
nuttx-c44875bf6618c6785ef58a734f47155ece14a30f.zip
More NX LCD fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2624 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/graphics/nxglib')
-rwxr-xr-xnuttx/graphics/nxglib/lcd/nxglib_fillrectangle.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/nuttx/graphics/nxglib/lcd/nxglib_fillrectangle.c b/nuttx/graphics/nxglib/lcd/nxglib_fillrectangle.c
index e3668c0ea..50ef7efbe 100755
--- a/nuttx/graphics/nxglib/lcd/nxglib_fillrectangle.c
+++ b/nuttx/graphics/nxglib/lcd/nxglib_fillrectangle.c
@@ -88,13 +88,11 @@ void NXGL_FUNCNAME(nxgl_fillrectangle,NXGLIB_SUFFIX)
(FAR struct lcd_planeinfo_s *pinfo, FAR const struct nxgl_rect_s *rect, nxgl_mxpixel_t color)
{
unsigned int ncols;
- unsigned int nrows;
unsigned int row;
/* Get the dimensions of the rectange to fill in pixels */
ncols = rect->pt2.x - rect->pt1.x + 1;
- nrows = rect->pt2.y - rect->pt1.y + 1;
/* Fill the run buffer with the selected color */
@@ -102,7 +100,7 @@ void NXGL_FUNCNAME(nxgl_fillrectangle,NXGLIB_SUFFIX)
/* Then fill the rectangle line-by-line */
- for (row = 0; row < nrows; row++)
+ for (row = rect->pt1.y; row <= rect->pt2.y; row++)
{
/* Draw the raster line at this row */