]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
authorneil <>
Mon, 23 Sep 2013 11:35:33 +0000 (13:35 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 23 Sep 2013 11:35:33 +0000 (13:35 +0200)
video if no text is available.

Also-By: Vladimir Serbinenko <phcoder@gmail.com>
ChangeLog
grub-core/loader/multiboot.c

index 48f42e41ff718d8d5b4c8e4b699b54f40f5ba65b..e1e07ecc92b9fae0b7b7af9bfe8574794df9ab53 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
+2013-09-23  neil
+
+       * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
+       video if no text is available.
+
 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
 2013-09-23  neil
 
index 496e54c272071b6ceeb4a62ec6c52b16909eb489..a37826c5d0307d22d5f0c760a60cdb37f4e63508 100644 (file)
@@ -216,8 +216,15 @@ grub_multiboot_set_console (int console_type, int accepted_consoles,
       grub_env_set ("gfxpayload", buf);
       grub_free (buf);
     }
- else
-   grub_env_set ("gfxpayload", "text");
+  else
+    {
+#if GRUB_MACHINE_HAS_VGA_TEXT
+      grub_env_set ("gfxpayload", "text");
+#else
+      /* Always use video if no VGA text is available.  */
+      grub_env_set ("gfxpayload", "auto");
+#endif
+    }
 
   accepts_video = !!(accepted_consoles & GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER);
   accepts_ega_text = !!(accepted_consoles & GRUB_MULTIBOOT_CONSOLE_EGA_TEXT);