Pixel function used wrong width and height for bounds check.
Remove String variable in smooth font code (not used)
Correct ESP8266UncannyEyes example for new setAddrWindow parameters
This commit is contained in:
Bodmer committed 2019-02-20 00:45:02 +00:00
1 parent 66a21cb761
commit 1edfe6c680
6 files changed
+11 -10

No files matched your search

+2 -4
View File
@@ -76,15 +76,13 @@ void TFT_eSPI::loadFont(String fontName)
unloadFont();
_gFontFilename = "/" + fontName + ".vlw";
// Avoid a crash on the ESP32 if the file does not exist
if (SPIFFS.exists(_gFontFilename) == false) {
if (SPIFFS.exists("/" + fontName + ".vlw") == false) {
Serial.println("Font file " + fontName + " not found!");
return;
}
fontFile = SPIFFS.open( _gFontFilename, "r");
fontFile = SPIFFS.open( "/" + fontName + ".vlw", "r");
if(!fontFile) return;