mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 18:56:10 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user