mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Retrigger CI
This commit is contained in:
parent
6684438649
commit
0ee6884edb
1 changed files with 1 additions and 1 deletions
|
@ -376,7 +376,7 @@ void Display::print(int x, int y, int width, int height, BaseFont *font, Color c
|
||||||
this->get_text_bounds(line_x, line_y, w.c_str(), font, align, &word_x1, &word_y1, &word_width, &word_height);
|
this->get_text_bounds(line_x, line_y, w.c_str(), font, align, &word_x1, &word_y1, &word_width, &word_height);
|
||||||
|
|
||||||
if (line_x + word_width >= x_max) {
|
if (line_x + word_width >= x_max) {
|
||||||
// If the next line would overspill the height box, get ready to stop.
|
// If the next line would overspill the height box, get ready to stop
|
||||||
if (line_y + 2 * static_cast<int>(word_height * line_height) > y_max) {
|
if (line_y + 2 * static_cast<int>(word_height * line_height) > y_max) {
|
||||||
last = true;
|
last = true;
|
||||||
size_t length = line.length();
|
size_t length = line.length();
|
||||||
|
|
Loading…
Reference in a new issue