lcd: Fix clear_viewport on grayscale displays
The original drawmode change was "x = (~x & INVERSEVID) | SOLID"
which is essentially XOR'ing the INVERSEVID bit, but I changed it
to mask out INVERSEVID by mistake.
Fixes 44b9785465
.
Change-Id: I87b059b89aea9c31a8ff408016264285e67ca80c
This commit is contained in:
parent
1718cf5f8a
commit
8bf8036021
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ void LCDFN(clear_viewport)(void)
|
|||
else
|
||||
{
|
||||
oldmode = vp->drawmode;
|
||||
vp->drawmode &= ~DRMODE_INVERSEVID;
|
||||
vp->drawmode ^= DRMODE_INVERSEVID;
|
||||
vp->drawmode |= DRMODE_SOLID;
|
||||
|
||||
LCDFN(fillrect)(0, 0, vp->width, vp->height);
|
||||
|
|
Loading…
Reference in a new issue