mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-04 21:24:44 +02:00
Stop y wrapping
I need this in my project but will add a switch.
This commit is contained in:
@@ -3308,7 +3308,7 @@ size_t TFT_eSPI::write(uint8_t utf8)
|
|||||||
cursor_y += height;
|
cursor_y += height;
|
||||||
cursor_x = 0;
|
cursor_x = 0;
|
||||||
}
|
}
|
||||||
if (cursor_y >= _height) cursor_y = 0;
|
//if (cursor_y >= _height) cursor_y = 0;
|
||||||
cursor_x += drawChar(uniCode, cursor_x, cursor_y, textfont);
|
cursor_x += drawChar(uniCode, cursor_x, cursor_y, textfont);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3338,7 +3338,7 @@ size_t TFT_eSPI::write(uint8_t utf8)
|
|||||||
cursor_y += (int16_t)textsize *
|
cursor_y += (int16_t)textsize *
|
||||||
(uint8_t)pgm_read_byte(&gfxFont->yAdvance);
|
(uint8_t)pgm_read_byte(&gfxFont->yAdvance);
|
||||||
}
|
}
|
||||||
if (cursor_y >= _height) cursor_y = 0;
|
//if (cursor_y >= _height) cursor_y = 0;
|
||||||
drawChar(cursor_x, cursor_y, uniCode, textcolor, textbgcolor, textsize);
|
drawChar(cursor_x, cursor_y, uniCode, textcolor, textbgcolor, textsize);
|
||||||
}
|
}
|
||||||
cursor_x += pgm_read_byte(&glyph->xAdvance) * (int16_t)textsize;
|
cursor_x += pgm_read_byte(&glyph->xAdvance) * (int16_t)textsize;
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "TFT_eSPI",
|
"name": "TFT_eSPI",
|
||||||
"version": "0.18.11",
|
"version": "0.18.12",
|
||||||
"keywords": "TFT, ESP8266, NodeMCU, ESP32, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486",
|
"keywords": "TFT, ESP8266, NodeMCU, ESP32, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486",
|
||||||
"description": "A TFT SPI graphics library for ESP8266",
|
"description": "A TFT SPI graphics library for ESP8266",
|
||||||
"repository":
|
"repository":
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
name=TFT_eSPI
|
name=TFT_eSPI
|
||||||
version=0.18.11
|
version=0.18.12
|
||||||
author=Bodmer
|
author=Bodmer
|
||||||
maintainer=Bodmer
|
maintainer=Bodmer
|
||||||
sentence=A fast TFT library for ESP8266 processors and the Arduino IDE
|
sentence=A fast TFT library for ESP8266 processors and the Arduino IDE
|
||||||
|
Reference in New Issue
Block a user