]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
authorchaac <chaac@localhost>
Thu, 20 Apr 2006 15:19:01 +0000 (15:19 +0000)
committerchaac <chaac@localhost>
Thu, 20 Apr 2006 15:19:01 +0000 (15:19 +0000)
        * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
        length for unknown glyph.

ChangeLog
term/gfxterm.c

index ffd3cdf6352fcb7aa10c0c6769ceb23fff9b9c58..30b22807d9508e031fdbdfd91ae8f15abac59ebc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-20  Vesa Jaaskelainen  <chaac@nic.fi>
+
+       * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
+       length for unknown glyph.
+
 2006-04-20  Yoshinori K. Okuji  <okuji@enbug.org>
 
        Add support for pre-loaded modules into the EFI port.
index 79d440d379a3773b16f48461898eaed8ed1e5195..c30a9086919fcfdce9c833f8006cec067d1d92e1 100644 (file)
@@ -641,8 +641,7 @@ grub_gfxterm_getcharwidth (grub_uint32_t c)
 {
   struct grub_font_glyph glyph;
   
-  if (! grub_font_get_glyph (c, &glyph))
-    return 0;
+  grub_font_get_glyph (c, &glyph);
 
   return glyph.char_width;
 }