From 1f7ce88dbe4462e705db25882b248b723bbd8825 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Tue, 3 May 2022 18:23:22 +0100 Subject: [PATCH] Fix #1812 Result of "fillheight = gFont.maxAscent - gdY[gNum];" can be negative. --- Extensions/Smooth_font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extensions/Smooth_font.cpp b/Extensions/Smooth_font.cpp index 56e623c..c36581d 100644 --- a/Extensions/Smooth_font.cpp +++ b/Extensions/Smooth_font.cpp @@ -431,7 +431,7 @@ void TFT_eSPI::drawGlyph(uint16_t code) startWrite(); // Avoid slow ESP32 transaction overhead for every pixel int16_t fillwidth = 0; - uint16_t fillheight = 0; + int16_t fillheight = 0; // Fill area above glyph if (_fillbg) {