Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Result of "fillheight = gFont.maxAscent - gdY[gNum];" can be negative.
  • Loading branch information
Bodmer authored May 3, 2022
1 parent 24b0e88 commit 1f7ce88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extensions/Smooth_font.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1f7ce88

Please sign in to comment.