summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-recorder.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/lcd-recorder.c')
-rw-r--r--firmware/drivers/lcd-recorder.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/firmware/drivers/lcd-recorder.c b/firmware/drivers/lcd-recorder.c
index a83f58e35d..1255516b51 100644
--- a/firmware/drivers/lcd-recorder.c
+++ b/firmware/drivers/lcd-recorder.c
@@ -391,7 +391,7 @@ static void nopixel(int x, int y)
}
lcd_pixelfunc_type* pixelfunc[8] = {flippixel, nopixel, setpixel, setpixel,
- nopixel, clearpixel, nopixel, clearpixel};
+ nopixel, clearpixel, nopixel, clearpixel};
static void flipblock(unsigned char *address, unsigned mask, unsigned bits)
{
@@ -420,10 +420,9 @@ lcd_blockfunc_type* blockfunc[4] = {flipblock, bgblock, fgblock, solidblock};
/* Clear the whole display */
void lcd_clear_display(void)
{
- if (drawmode & DRMODE_INVERSEVID)
- memset (lcd_framebuffer, 0xFF, sizeof lcd_framebuffer);
- else
- memset (lcd_framebuffer, 0, sizeof lcd_framebuffer);
+ unsigned bits = (drawmode & DRMODE_INVERSEVID) ? 0xFFu : 0;
+
+ memset(lcd_framebuffer, bits, sizeof lcd_framebuffer);
scrolling_lines = 0;
}