Fix reset x for manual newlines

This commit is contained in:
Reed Nightingale 2020-01-19 13:05:02 -08:00
parent a8e616637c
commit ec409d8805

View File

@ -748,7 +748,7 @@ size_t PDQ_GFX<HW>::write(uint8_t c)
{
if(c == '\n')
{
cursor_x = 0;
cursor_x = bound_x1;
cursor_y += (coord_t)textsize * (uint8_t)pgm_read_byte(&gfxFont->yAdvance);
}
else if (c != '\r')