Feature update

Add ILI9225 support
Add viewport feature to Sprites
Rationalise common TFT_eSPI and Sprite functions and variables to use inherited functions width(), height(), rotation(), write(), pivot, cursor, swapBytes.
This commit is contained in:
Bodmer
2020-12-01 20:06:32 +00:00
parent 27216f89cc
commit 42e6fc87ff
16 changed files with 842 additions and 920 deletions
+1 -1
View File
@@ -373,7 +373,7 @@ void TFT_eSPI::drawGlyph(uint16_t code)
if (code == '\n') {
cursor_x = 0;
cursor_y += gFont.yAdvance;
if (cursor_y >= _height) cursor_y = 0;
if (textwrapY && (cursor_y >= height())) cursor_y = 0;
return;
}
}