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:
Aidan MacDonald 2022-10-16 15:37:06 +01:00
parent 1718cf5f8a
commit 8bf8036021

View file

@ -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);