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:
Vladimir 'phcoder' Serbinenko 2012-05-21 22:17:11 +02:00
parent 37ed2c9b7e
commit 7086ad524f
6 changed files with 21 additions and 8 deletions

View file

@ -313,7 +313,7 @@ grub_gfxterm_set_window (struct grub_video_render_target *target,
return grub_errno;
}
grub_err_t
static grub_err_t
grub_gfxterm_fullscreen (void)
{
const char *font_name;
@ -1242,6 +1242,7 @@ static struct grub_term_output grub_video_term =
.setcolorstate = grub_virtual_screen_setcolorstate,
.setcursor = grub_gfxterm_setcursor,
.refresh = grub_gfxterm_refresh,
.fullscreen = grub_gfxterm_fullscreen,
.flags = GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS,
.normal_color = GRUB_TERM_DEFAULT_NORMAL_COLOR,
.highlight_color = GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR,