From: chaac Date: Sun, 18 Sep 2005 21:04:41 +0000 (+0000) Subject: 2005-09-18 Vesa Jaaskelainen X-Git-Tag: 1.98~2068 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83d37a627e74b971424f13db02e1a8509d7eb808;p=thirdparty%2Fgrub.git 2005-09-18 Vesa Jaaskelainen * 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. --- diff --git a/ChangeLog b/ChangeLog index 51fb63a63..3701f182b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-09-18 Vesa Jaaskelainen + + * 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 * normal/completion.c (complete_arguments): Add the qualifier diff --git a/video/i386/pc/vbe.c b/video/i386/pc/vbe.c index 04d39d315..817b7c48e 100644 --- a/video/i386/pc/vbe.c +++ b/video/i386/pc/vbe.c @@ -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