From 7e841e9aa89a083371a4fdf6fa6ed66998669046 Mon Sep 17 00:00:00 2001 From: nathanjshaffer Date: Sat, 6 Jan 2024 16:57:57 -0500 Subject: [PATCH] Update Adafruit_GFX.cpp Bugfix --- Adafruit_GFX.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Adafruit_GFX.cpp b/Adafruit_GFX.cpp index 27e0bf0c..3cc14852 100644 --- a/Adafruit_GFX.cpp +++ b/Adafruit_GFX.cpp @@ -1153,7 +1153,7 @@ void Adafruit_GFX::drawChar(int16_t x, int16_t y, unsigned char c, for (int8_t j = 0; j < 8; j++, line >>= 1) { if (line & 1) { rp++; - if (!(1 & (line >> 1))) { //write sequential pixels with writeFillRect + if (!(1 & (line >> 1)) || j == 7) { //write sequential pixels with writeFillRect if(rp == 1 && size_x == 1 && size_y == 1) { writePixel(x + i, y + j, color); } @@ -1166,7 +1166,7 @@ void Adafruit_GFX::drawChar(int16_t x, int16_t y, unsigned char c, } else if (bg != color) { rb++; - if( 1 & (line >> 1)) { //write sequential pixels with writeFillRect + if( 1 & (line >> 1) || j == 7) { //write sequential pixels with writeFillRect if (rb == 1 && size_x == 1 && size_y == 1) { writePixel(x + i, y + j, bg); }