]> git.proxmox.com Git - grub2.git/commitdiff
2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
authorrobertmh <robertmh@localhost>
Mon, 8 Jun 2009 16:12:58 +0000 (16:12 +0000)
committerrobertmh <robertmh@localhost>
Mon, 8 Jun 2009 16:12:58 +0000 (16:12 +0000)
        * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
        as fallback an equivalent option without depth.

ChangeLog
loader/i386/linux.c

index 6eb19f8a44e33d2214d6ed24caa66d15aba19fcb..4ccdefe034d63d22a33898829cc8dbdcac593394 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-06-08  Robert Millan  <rmh.grub@aybabtu.com>
+
+       * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
+       as fallback an equivalent option without depth.
+
 2009-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Not fail if unable to retrieve C/H/S on LBA disks
index e3726ec8125b28f14d703cb6a3ef491d6aa6e0c0..3b1f2f08d220ec794968b6461e71169e4d2b15c2 100644 (file)
@@ -761,17 +761,19 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
                break;
              }
 
-           buf = grub_malloc (20);
+           buf = grub_malloc (sizeof ("WWWWxHHHHxDD;WWWWxHHHH"));
            if (! buf)
              goto fail;
            
            linux_mode 
              = &linux_vesafb_modes[vid_mode - GRUB_LINUX_VID_MODE_VESA_START];
            
-           grub_sprintf (buf, "%dx%dx%d", 
+           grub_sprintf (buf, "%ux%ux%u;%ux%u", 
                          linux_vesafb_res[linux_mode->res_index].width,
                          linux_vesafb_res[linux_mode->res_index].height,
-                         linux_mode->depth);
+                         linux_mode->depth,
+                         linux_vesafb_res[linux_mode->res_index].width,
+                         linux_vesafb_res[linux_mode->res_index].height);
            grub_printf ("%s is deprecated. "
                         "Use set gfxpayload=%s before "
                         "linux command instead.\n",