]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
authorhollisb <hollisb@localhost>
Wed, 31 Aug 2005 01:02:05 +0000 (01:02 +0000)
committerhollisb <hollisb@localhost>
Wed, 31 Aug 2005 01:02:05 +0000 (01:02 +0000)
* term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
function.
(grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
getcharwidth.

ChangeLog
term/ieee1275/ofconsole.c

index a230190d28ec890e3db41ffe1ace62054984f704..14d7309ad5f69666df8a2462950d3822fc3a242f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-08-30  Hollis Blanchard  <hollis@penguinppc.org>
+
+       * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
+       function.
+       (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
+       getcharwidth.
+
 2005-08-28  Marco Gerards  <metgerards@student.han.nl>
 
        * include/grub/normal.h (enum grub_completion_type): Added
index a74fde16b164ad20dc427d10c9eccc689e12a0b8..2112f048d3f3fd2a1b231f8c64bb2a9eedfc92be 100644 (file)
@@ -83,6 +83,12 @@ grub_ofconsole_putchar (grub_uint32_t c)
   grub_ieee1275_write (stdout_ihandle, &chr, 1, 0);
 }
 
+static grub_ssize_t
+grub_ofconsole_getcharwidth (grub_uint32_t c)
+{
+  return 1;
+}
+
 static void
 grub_ofconsole_setcolorstate (grub_term_color_state state)
 {
@@ -337,6 +343,7 @@ static struct grub_term grub_ofconsole_term =
     .init = grub_ofconsole_init,
     .fini = grub_ofconsole_fini,
     .putchar = grub_ofconsole_putchar,
+    .getcharwidth = grub_ofconsole_getcharwidth,
     .checkkey = grub_ofconsole_checkkey,
     .getkey = grub_ofconsole_getkey,
     .getxy = grub_ofconsole_getxy,