mirror of
https://github.com/Bodmer/TFT_eSPI.git
synced 2025-08-09 23:54:43 +02:00
@@ -2347,6 +2347,18 @@ void TFT_eSprite::drawGlyph(uint16_t code)
|
|||||||
this->cursor_x = -this->gdX[gNum];
|
this->cursor_x = -this->gdX[gNum];
|
||||||
this->cursor_y = 0;
|
this->cursor_y = 0;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if( this->textwrapX && ((this->cursor_x + this->gWidth[gNum] + this->gdX[gNum]) >= _iwidth)) {
|
||||||
|
this->cursor_y += this->gFont.yAdvance;
|
||||||
|
this->cursor_x = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if( this->textwrapY && ((this->cursor_y + this->gFont.yAdvance) >= _iheight)) this->cursor_y = 0;
|
||||||
|
|
||||||
|
if ( this->cursor_x == 0) this->cursor_x -= this->gdX[gNum];
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
uint8_t* pbuffer = nullptr;
|
uint8_t* pbuffer = nullptr;
|
||||||
const uint8_t* gPtr = (const uint8_t*) this->gFont.gArray;
|
const uint8_t* gPtr = (const uint8_t*) this->gFont.gArray;
|
||||||
|
Reference in New Issue
Block a user