1
0
mirror of https://codeberg.org/mclemens/ubitxv6.git synced 2025-02-21 06:57:27 -05:00

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

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