diff --git a/graphics/pdcurs34/nuttx/pdcdisp.c b/graphics/pdcurs34/nuttx/pdcdisp.c index 5acc4f296..7a1ec292b 100644 --- a/graphics/pdcurs34/nuttx/pdcdisp.c +++ b/graphics/pdcurs34/nuttx/pdcdisp.c @@ -282,7 +282,7 @@ static inline void PDC_set_bg(FAR struct pdc_fbstate_s *fbstate, * the final byte than may have fewer than 4 pixels in it). */ - endcol = (endcol + 3) >> 3; + endcol = (endcol + 3) >> 2; #elif PDCURSES_BPP == 4 /* Get the start and end colum in pixels (relative to the start position) */ @@ -306,7 +306,7 @@ static inline void PDC_set_bg(FAR struct pdc_fbstate_s *fbstate, * the final byte than may have only one pixels in it). */ - endcol = (endcol + 1) >> 3; + endcol = (endcol + 1) >> 1; #endif /* Now copy the color into the entire glyph region */