From 966faf385984d847d7cfb645eb1e458cec478ddd Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 23 Nov 2017 11:39:40 -0600 Subject: [PATCH] Revert "apps/examples/fb: Fix calculation of a mask value." This reverts commit 0205eeef52ff0324931f395ba5385fee9f2f644e. --- examples/fb/fb_main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/fb/fb_main.c b/examples/fb/fb_main.c index d82022010..9ecac2c5d 100644 --- a/examples/fb/fb_main.c +++ b/examples/fb/fb_main.c @@ -177,12 +177,10 @@ static void draw_rect1(FAR struct fb_state_s *state, int y; row = (FAR uint8_t *)state->fbmem + state->pinfo.stride * rect->pt1.y; - startx = (rect->pt1.x >> 3); endx = (rect->pt2.x >> 3); - - lmask = 0xff << (8 - (rect->pt1.x & 7)); - rmask = 0xff >> (rect->pt2.x & 7); + lmask = 0xff << (8 - (rect->pt1.x & 3)); + rmask = 0xff >> (rect->pt2.x & 3); for (y = rect->pt1.y; y <= rect->pt2.y; y++) {