From 83d37a627e74b971424f13db02e1a8509d7eb808 Mon Sep 17 00:00:00 2001 From: chaac Date: Sun, 18 Sep 2005 21:04:41 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ video/i386/pc/vbe.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 51fb63a632..3701f182b8 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 04d39d3156..817b7c48e1 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