[1822] 2008-08-20 Carles Pina i Estany <[email protected]>

Robert Millan <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 1822
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=1822
Author:   robertmh
Date:     2008-08-20 10:07:56 +0000 (Wed, 20 Aug 2008)

Log Message:
-----------
2008-08-20  Carles Pina i Estany  <[email protected]>

        * menu/normal.c (run_menu): Replace hardcoded numbers with macros
        (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/normal/menu.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2008-08-19 19:20:33 UTC (rev 1821)
+++ trunk/grub2/ChangeLog	2008-08-20 10:07:56 UTC (rev 1822)
@@ -1,3 +1,8 @@
+2008-08-20  Carles Pina i Estany  <[email protected]>
+
+	* menu/normal.c (run_menu): Replace hardcoded numbers with macros
+	(16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
+
 2008-08-19  Robert Millan  <[email protected]>
 
 	* term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.

Modified: trunk/grub2/normal/menu.c
===================================================================
--- trunk/grub2/normal/menu.c	2008-08-19 19:20:33 UTC (rev 1821)
+++ trunk/grub2/normal/menu.c	2008-08-20 10:07:56 UTC (rev 1822)
@@ -421,7 +421,7 @@
 		print_entries (menu, first, offset);
 	      break;
 
-	    case 16:
+	    case GRUB_TERM_UP:
 	    case '^':
 	      if (offset > 0)
 		{
@@ -438,7 +438,7 @@
 		}
 	      break;
 	      
-	    case 14:
+	    case GRUB_TERM_DOWN:
 	    case 'v':
 	      if (menu->size > first + offset + 1)
 		{
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.