From e5ebcddc233488fa18f9e0cc12a6ae5e477d580d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 26 Nov 2017 06:09:06 -0600 Subject: [PATCH] apps/graphics/pdcurs34: Fix LCD display updates... The x and y offsets were being added twice. --- graphics/pdcurs34/nuttx/pdcdisp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/pdcurs34/nuttx/pdcdisp.c b/graphics/pdcurs34/nuttx/pdcdisp.c index 68bc2b010..34d93dde6 100644 --- a/graphics/pdcurs34/nuttx/pdcdisp.c +++ b/graphics/pdcurs34/nuttx/pdcdisp.c @@ -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;