* grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous

bitmap.
	(grub_gfxterm_term_init): Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-04-19 22:31:50 +02:00
parent abc474ef4b
commit bba79a1502
2 changed files with 6 additions and 7 deletions

View file

@ -1,3 +1,9 @@
2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
bitmap.
(grub_gfxterm_term_init): Likewise.
2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
Take into account the decorations the computing menu entry width.

View file

@ -345,7 +345,6 @@ grub_gfxterm_fullscreen (void)
grub_video_swap_buffers ();
grub_video_fill_rect (color, 0, 0, mode_info.width, mode_info.height);
}
bitmap = 0;
/* Select the font to use. */
font_name = grub_env_get ("gfxterm_font");
@ -394,12 +393,6 @@ grub_gfxterm_term_init (struct grub_term_output *term __attribute__ ((unused)))
static void
destroy_window (void)
{
if (bitmap)
{
grub_video_bitmap_destroy (bitmap);
bitmap = 0;
}
repaint_callback = 0;
grub_virtual_screen_free ();
}