[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] bug fix for ieee1275 console
From: |
Bean |
Subject: |
[PATCH] bug fix for ieee1275 console |
Date: |
Sat, 19 Apr 2008 01:28:14 +0800 |
Hi,
diff --git a/term/ieee1275/ofconsole.c b/term/ieee1275/ofconsole.c
index b449507..0d3ba46 100644
--- a/term/ieee1275/ofconsole.c
+++ b/term/ieee1275/ofconsole.c
@@ -84,7 +84,10 @@ grub_ofconsole_putchar (grub_uint32_t c)
{
grub_curr_x++;
if (grub_curr_x > grub_ofconsole_width)
- grub_putcode ('\n');
+ {
+ grub_putcode ('\n');
+ grub_curr_x++;
+ }
}
grub_ieee1275_write (stdout_ihandle, &chr, 1, 0);
}
The reason for this patch is that after grub_putcode('\n'),
grub_curr_x will be reset to 0, we need to increment it again for the
current character.
--
Bean
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] bug fix for ieee1275 console,
Bean <=