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:
parent
f9dbfc961e
commit
e290bef2e1
2 changed files with 7 additions and 2 deletions
|
@ -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>
|
2008-08-19 Robert Millan <rmh@aybabtu.com>
|
||||||
|
|
||||||
* term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
|
* term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
|
||||||
|
|
|
@ -421,7 +421,7 @@ run_menu (grub_menu_t menu, int nested)
|
||||||
print_entries (menu, first, offset);
|
print_entries (menu, first, offset);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 16:
|
case GRUB_TERM_UP:
|
||||||
case '^':
|
case '^':
|
||||||
if (offset > 0)
|
if (offset > 0)
|
||||||
{
|
{
|
||||||
|
@ -438,7 +438,7 @@ run_menu (grub_menu_t menu, int nested)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 14:
|
case GRUB_TERM_DOWN:
|
||||||
case 'v':
|
case 'v':
|
||||||
if (menu->size > first + offset + 1)
|
if (menu->size > first + offset + 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue