mirror of
https://github.com/olikraus/u8g2.git
synced 2026-09-15 11:12:47 +00:00
issue #804
This commit is contained in:
+5
-2
@@ -51,13 +51,16 @@ size_t U8X8::write(uint8_t v)
|
||||
{
|
||||
if ( v == '\n' )
|
||||
{
|
||||
ty++;
|
||||
uint8_t dy = u8x8_pgm_read(u8x8.font+3); /* new 2019 format */
|
||||
ty+=dy;
|
||||
tx=0;
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t dx = u8x8_pgm_read(u8x8.font+2); /* new 2019 format */
|
||||
u8x8_DrawGlyph(&u8x8, tx, ty, v);
|
||||
tx++;
|
||||
|
||||
tx+=dx;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user