]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
authorchaac <chaac@localhost>
Sun, 18 Sep 2005 21:04:41 +0000 (21:04 +0000)
committerchaac <chaac@localhost>
Sun, 18 Sep 2005 21:04:41 +0000 (21:04 +0000)
        * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
        color modes, allow greater than 16 colors to be configured as
        a default palette.

ChangeLog
video/i386/pc/vbe.c

index 51fb63a6323f11a311e521ee85a3b81fd20697b3..3701f182b80feb889425f4cf1c78f81436b3c5a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-09-18  Vesa Jaaskelainen  <chaac@nic.fi>
+
+       * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
+       color modes, allow greater than 16 colors to be configured as
+       a default palette.
+
 2005-09-03  Yoshinori K. Okuji  <okuji@enbug.org>
 
        * normal/completion.c (complete_arguments): Add the qualifier
index 04d39d315655d0b9c337df3e21ec94bb6018876d..817b7c48e1d81975991f8483834d33495e2b5cef 100644 (file)
@@ -195,7 +195,10 @@ grub_vbe_set_video_mode (grub_uint32_t mode,
 
       /* Make sure that the BIOS can reach the palette.  */
       grub_memcpy (palette, vga_colors, sizeof (vga_colors));
-      status = grub_vbe_set_palette_data (16, 0, palette);
+      status = grub_vbe_set_palette_data (sizeof (vga_colors) 
+                                          / sizeof (struct grub_vbe_palette_data), 
+                                          0, 
+                                          palette);
 
       /* For now, ignore the status. Not sure if this is fatal.  */
 #if 0