issue #474, fixed string draw

This commit is contained in:
olikraus 2018-01-21 17:00:06 +01:00
parent 35803d7f5d
commit b2d84613a8
2 changed files with 3 additions and 1 deletions

View File

@ -378,7 +378,7 @@ static uint8_t u8x8_draw_1x2_string(u8x8_t *u8x8, uint8_t x, uint8_t y, const ch
if ( e != 0x0fffe )
{
u8x8_Draw1x2Glyph(u8x8, x, y, e);
x+=2;
x++;
cnt++;
}
}

View File

@ -12,6 +12,8 @@ int main(void)
u8x8_DrawString(&u8x8, 0, 0, "Hello World!");
u8x8_Draw1x2String(&u8x8, 0, 1, "Hello World!");
u8x8_Draw2x2String(&u8x8, 0, 3, "Hello World!");