[SeaBIOS] [PATCH] src/bootsplash.c: Fix displaying VGA bootsplash

Gerhard Wiesinger lists at wiesinger.com
Mon Feb 13 07:42:52 CET 2012


VGA bootsplash isn't displayed because video mode is set
which clears the display. Video mode has already been set
by the VGA BIOS.

Signed-off-by: Gerhard Wiesinger <lists at wiesinger.com>
---
  src/bootsplash.c |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/bootsplash.c b/src/bootsplash.c
index 76b72c1..8519bf4 100644
--- a/src/bootsplash.c
+++ b/src/bootsplash.c
@@ -38,12 +38,14 @@ void
  enable_vga_console(void)
  {
      dprintf(1, "Turning on vga text mode console\n");
+#ifdef SET_VGA_TEXT_MODE
      struct bregs br;

      /* Enable VGA text mode */
      memset(&br, 0, sizeof(br));
      br.ax = 0x0003;
      call16_int10(&br);
+#endif

      // Write to screen.
      printf("SeaBIOS (version %s)\n\n", VERSION);
-- 
1.7.7.6



More information about the SeaBIOS mailing list