apps/graphics/pdcurs34: Fix LCD display updates... The x and y offsets were being added twice.
This commit is contained in:
parent
e414a8f26c
commit
e5ebcddc23
@ -419,8 +419,8 @@ static void PDC_update(FAR struct pdc_fbstate_s *fbstate, int row, int col,
|
|||||||
{
|
{
|
||||||
/* Setup the bounding rectangle */
|
/* Setup the bounding rectangle */
|
||||||
|
|
||||||
rect.pt1.x = PDC_pixel_x(fbstate, col) + fbstate->hoffset;
|
rect.pt1.x = PDC_pixel_x(fbstate, col);
|
||||||
rect.pt1.y = PDC_pixel_y(fbstate, row) + fbstate->voffset;
|
rect.pt1.y = PDC_pixel_y(fbstate, row);
|
||||||
rect.pt2.x = rect.pt1.x + nchars * fbstate->fwidth - 1;
|
rect.pt2.x = rect.pt1.x + nchars * fbstate->fwidth - 1;
|
||||||
rect.pt2.y = rect.pt1.y + fbstate->fheight - 1;
|
rect.pt2.y = rect.pt1.y + fbstate->fheight - 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user