apps/graphics/pdcurs34: Fix LCD display updates... The x and y offsets were being added twice.

This commit is contained in:
Gregory Nutt 2017-11-26 06:09:06 -06:00
parent e414a8f26c
commit e5ebcddc23

View File

@ -419,8 +419,8 @@ static void PDC_update(FAR struct pdc_fbstate_s *fbstate, int row, int col,
{
/* Setup the bounding rectangle */
rect.pt1.x = PDC_pixel_x(fbstate, col) + fbstate->hoffset;
rect.pt1.y = PDC_pixel_y(fbstate, row) + fbstate->voffset;
rect.pt1.x = PDC_pixel_x(fbstate, col);
rect.pt1.y = PDC_pixel_y(fbstate, row);
rect.pt2.x = rect.pt1.x + nchars * fbstate->fwidth - 1;
rect.pt2.y = rect.pt1.y + fbstate->fheight - 1;