disabled change for AVR targets

This commit is contained in:
Laurence Bank committed 2022-03-08 15:42:34 +00:00
1 parent 9ac47e8616
commit 14fd8ab168
1 file changed
+4 -1
+4 -1
View File
@@ -1177,6 +1177,7 @@ void Adafruit_GFX::drawChar(int16_t x, int16_t y, unsigned char c,
c++; // Handle 'classic' charset behavior
startWrite();
#ifndef __AVR__
if (color != bg) { // faster opaque text
setAddrWindow(x, y, 5*size_x, 7*size_y);
for (int8_t j = 0; j < 7; j++) { // 7 lines
@@ -1188,7 +1189,9 @@ void Adafruit_GFX::drawChar(int16_t x, int16_t y, unsigned char c,
} // for each column
} // repeat for each line of size_y
} // for j
} else { // slower text which doesn't overwrite the background color
} else
#endif // __AVR__
{ // slower text which doesn't overwrite the background color
for (int8_t i = 0; i < 5; i++) { // Char bitmap = 5 columns
uint8_t line = pgm_read_byte(&font[c * 5 + i]);
for (int8_t j = 0; j < 8; j++, line >>= 1) {