mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-08 22:17:23 +00:00
Revert "apps/examples/fb: Fix calculation of a mask value."
This reverts commit 0205eeef52.
This commit is contained in:
parent
421b3009e3
commit
966faf3859
1 changed files with 2 additions and 4 deletions
|
|
@ -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++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue