mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2024-08-29 15:14:20 -04:00
Fix reset x for manual newlines
This commit is contained in:
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')
|
||||||
|
Loading…
Reference in New Issue
Block a user