diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-20 02:12:48 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-05-20 02:12:48 +0000 |
commit | f5d568973306ead83c99302d459d9fb665aeb3d5 (patch) | |
tree | f7e5e690925c1a8739769d09fc022c6c56edba19 /nuttx | |
parent | 65a3064c52c7255783a60ab9b31762f7299bdb2a (diff) | |
download | px4-nuttx-f5d568973306ead83c99302d459d9fb665aeb3d5.tar.gz px4-nuttx-f5d568973306ead83c99302d459d9fb665aeb3d5.tar.bz2 px4-nuttx-f5d568973306ead83c99302d459d9fb665aeb3d5.zip |
Fixes a couple of display artifacts
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2686 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rwxr-xr-x | nuttx/drivers/lcd/p14201.c | 8 | ||||
-rwxr-xr-x | nuttx/graphics/nxglib/lcd/nxglib_copyrectangle.c | 2 |
2 files changed, 3 insertions, 7 deletions
diff --git a/nuttx/drivers/lcd/p14201.c b/nuttx/drivers/lcd/p14201.c index 6f41f7f3b..8bf45b3d2 100755 --- a/nuttx/drivers/lcd/p14201.c +++ b/nuttx/drivers/lcd/p14201.c @@ -618,11 +618,7 @@ static void rit_sndcmds(FAR struct rit_dev_s *priv, FAR const uint8_t *table) * Description: * This method can be used to write a partial raster line to the LCD: * - * row - Starting row to write to (range: 0 <= row < yres) - * col - Starting column to write to (range: 0 <= col <= xres-npixels) - * buffer - The buffer containing the run to be written to the LCD - * npixels - The number of pixels to write to the LCD - * (range: 0 < npixels <= xres-col) + * rpriv - Reference to private driver structure * * Assumptions: * Caller has selected the OLED section. @@ -761,7 +757,7 @@ static int rit_putrun(fb_coord_t row, fb_coord_t col, FAR const uint8_t *buffer, { /* Beginning of buffer is properly aligned, from start to aend */ - memcpy(&run[start], buffer, aend - start + 1); + memcpy(&run[start], buffer, aend - start); } /* An even number of byte-aligned pixel pairs have been written (where diff --git a/nuttx/graphics/nxglib/lcd/nxglib_copyrectangle.c b/nuttx/graphics/nxglib/lcd/nxglib_copyrectangle.c index 893030567..451fdbe21 100755 --- a/nuttx/graphics/nxglib/lcd/nxglib_copyrectangle.c +++ b/nuttx/graphics/nxglib/lcd/nxglib_copyrectangle.c @@ -110,7 +110,7 @@ void NXGL_FUNCNAME(nxgl_copyrectangle,NXGLIB_SUFFIX) /* Copy the image, one row at a time */ - for (row = dest->pt1.y; row < dest->pt2.y; row++) + for (row = dest->pt1.y; row <= dest->pt2.y; row++) { #if NXGLIB_BITSPERPIXEL < 8 /* if the source pixel is not aligned with a byte boundary, then we will |