summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-10-16 15:37:06 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-10-16 15:41:50 +0100
commit8bf80360212358591aa92af1591bddc7abaa47fb (patch)
tree8decfaa10715ce7b36c9c500c36d2262ea263e7e
parent1718cf5f8a39b922eba3ad1b3c9a9570188362b1 (diff)
downloadrockbox-8bf8036021.tar.gz
rockbox-8bf8036021.zip
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 44b9785465fc. Change-Id: I87b059b89aea9c31a8ff408016264285e67ca80c
-rw-r--r--firmware/drivers/lcd-bitmap-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c
index 4a94aff412..389d30917b 100644
--- a/firmware/drivers/lcd-bitmap-common.c
+++ b/firmware/drivers/lcd-bitmap-common.c
@@ -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);