Fixes a couple of display artifacts

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2686 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2010-05-20 02:12:48 +00:00
parent 30d67668b0
commit 55b8006c2d
2 changed files with 3 additions and 7 deletions
+2 -6
View File
@@ -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
+1 -1
View File
@@ -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