From ec409d8805d4f80f8c581a7a2abd2b3e07ca14c5 Mon Sep 17 00:00:00 2001 From: Reed Nightingale Date: Sun, 19 Jan 2020 13:05:02 -0800 Subject: [PATCH] Fix reset x for manual newlines --- PDQ_MinLib/PDQ_GFX.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PDQ_MinLib/PDQ_GFX.h b/PDQ_MinLib/PDQ_GFX.h index 49370f0..cb9f152 100644 --- a/PDQ_MinLib/PDQ_GFX.h +++ b/PDQ_MinLib/PDQ_GFX.h @@ -748,7 +748,7 @@ size_t PDQ_GFX::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')