2008-08-20 Carles Pina i Estany <carles@pina.cat>

* menu/normal.c (run_menu): Replace hardcoded numbers with macros
        (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
This commit is contained in:
robertmh 2008-08-20 10:07:56 +00:00
parent f9dbfc961e
commit e290bef2e1
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2008-08-20 Carles Pina i Estany <carles@pina.cat>
* 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 <rmh@aybabtu.com>
* term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.

View file

@ -421,7 +421,7 @@ run_menu (grub_menu_t menu, int nested)
print_entries (menu, first, offset);
break;
case 16:
case GRUB_TERM_UP:
case '^':
if (offset > 0)
{
@ -438,7 +438,7 @@ run_menu (grub_menu_t menu, int nested)
}
break;
case 14:
case GRUB_TERM_DOWN:
case 'v':
if (menu->size > first + offset + 1)
{