diff options
Diffstat (limited to 'app/font8x16.c')
-rw-r--r-- | app/font8x16.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/font8x16.c b/app/font8x16.c index 1a396c7..48358f8 100644 --- a/app/font8x16.c +++ b/app/font8x16.c @@ -529,15 +529,16 @@ font8x16_put_ch (unsigned ch, unsigned x, unsigned y) x += SSD1306_WIDTH; shift = 8 - shift; - mask =0xff >> shift; - + mask = 0xff >> shift; + if (shift) { oled_blit_strip (x, x + 8, mask, -shift, font8x16[ch]); } shift = y & 7; - oled_blit_strip (x, x + 8,~mask & (0xff << shift ) , shift, &font8x16[ch][8]); + oled_blit_strip (x, x + 8, ~mask & (0xff << shift), shift, + &font8x16[ch][8]); if (shift) { |