mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
Fix combining characters messing with width counter
This commit is contained in:
1 parent
50186d826d
commit
8a0b074f39
1 file changed
+1
-1
+1
-1
@@ -348,7 +348,7 @@ grub_serial_putchar (const struct grub_unicode_glyph *c)
|
|||||||
default:
|
default:
|
||||||
if ((c->base & 0xC0) == 0x80)
|
if ((c->base & 0xC0) == 0x80)
|
||||||
break;
|
break;
|
||||||
if (xpos >= TEXT_WIDTH)
|
if (xpos + c->estimated_width >= TEXT_WIDTH + 1)
|
||||||
{
|
{
|
||||||
xpos = 0;
|
xpos = 0;
|
||||||
if (ypos < TEXT_HEIGHT - 1)
|
if (ypos < TEXT_HEIGHT - 1)
|
||||||
|
|||||||
Reference in new issue
Block a user