All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Small unicode problem fix in normal/menu.c
@ 2005-07-03 20:52 Vincent Pelletier
  2005-07-04 14:45 ` [Bulk] " Vincent Pelletier
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Vincent Pelletier @ 2005-07-03 20:52 UTC (permalink / raw)
  To: Grub-devel

[-- Attachment #1: Type: text/plain, Size: 555 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There is an alignment problem when menu is drawn with Unicode chars in
titles : there aren't enough spaces written on the right to make the
hilight fill horizontaly the menu.

2005-07-03  Vincent Pelletier  <subdino2004@yahoo.fr>

    * normal/menu.c
      (grub_print_entry): Rely on getxy to get horizontal position.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCyE/4FEQoKRQyjtURAmzYAJwN8/LK9MSCRTnD7lzPvLEsK560BQCfQSHk
FFMUG+Zshn0JM1mxxbZMk+o=
=yUWs
-----END PGP SIGNATURE-----

[-- Attachment #2: menu_unicode.diff --]
[-- Type: text/plain, Size: 633 bytes --]

Index: normal/menu.c
===================================================================
RCS file: /cvsroot/grub/grub2/normal/menu.c,v
retrieving revision 1.11
diff -u -p -r1.11 menu.c
--- normal/menu.c	27 Feb 2005 21:19:05 -0000	1.11
+++ normal/menu.c	3 Jul 2005 20:34:45 -0000
@@ -108,7 +108,7 @@ print_entry (int y, int highlight, grub_
 
   for (x = GRUB_TERM_LEFT_BORDER_X + GRUB_TERM_MARGIN + 1;
        x < GRUB_TERM_LEFT_BORDER_X + GRUB_TERM_BORDER_WIDTH - GRUB_TERM_MARGIN;
-       x++)
+       x=grub_getxy()>>8)
     {
       if (*title && x <= GRUB_TERM_LEFT_BORDER_X + GRUB_TERM_BORDER_WIDTH - GRUB_TERM_MARGIN - 1)
 	{

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-07-09  7:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-03 20:52 [PATCH] Small unicode problem fix in normal/menu.c Vincent Pelletier
2005-07-04 14:45 ` [Bulk] " Vincent Pelletier
2005-07-04 23:10   ` Yoshinori K. Okuji
2005-07-05  7:03     ` Vincent Pelletier
2005-07-05 10:07     ` Marco Gerards
2005-07-04 22:42 ` Yoshinori K. Okuji
2005-07-05 20:36   ` Vincent Pelletier
2005-07-09  7:01     ` Yoshinori K. Okuji
2005-07-05  9:58 ` Marco Gerards
2005-07-05 10:46   ` Marco Gerards

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.