Remove unjustified hard dependency of normal.mod on gfxterm.
* include/grub/term.h (grub_term_output): New member fullscreen. * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed. * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static. (grub_gfxterm): Set .fullscreen. * grub-core/normal/menu.c (menu_init): Use fullscreen. * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
This commit is contained in:
parent
37ed2c9b7e
commit
7086ad524f
6 changed files with 21 additions and 8 deletions
|
@ -349,7 +349,7 @@ menu_init (int entry, grub_menu_t menu, int nested)
|
|||
int gfxmenu = 0;
|
||||
|
||||
FOR_ACTIVE_TERM_OUTPUTS(term)
|
||||
if (grub_strcmp (term->name, "gfxterm") == 0)
|
||||
if (term->fullscreen)
|
||||
{
|
||||
if (grub_env_get ("theme"))
|
||||
{
|
||||
|
@ -376,7 +376,7 @@ menu_init (int entry, grub_menu_t menu, int nested)
|
|||
grub_wait_after_message ();
|
||||
}
|
||||
grub_errno = GRUB_ERR_NONE;
|
||||
grub_gfxterm_fullscreen ();
|
||||
term->fullscreen ();
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue