From e290bef2e1f06e255253f7ae4524b15cf96e105a Mon Sep 17 00:00:00 2001 From: robertmh Date: Wed, 20 Aug 2008 10:07:56 +0000 Subject: [PATCH] 2008-08-20 Carles Pina i Estany * menu/normal.c (run_menu): Replace hardcoded numbers with macros (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN) --- ChangeLog | 5 +++++ normal/menu.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9256549d6..88394b853 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-20 Carles Pina i Estany + + * 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 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove. diff --git a/normal/menu.c b/normal/menu.c index 279dd5877..d6fc0a33e 100644 --- a/normal/menu.c +++ b/normal/menu.c @@ -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) {