Skip to content

Commit

Permalink
2005-09-18 Vesa Jaaskelainen <[email protected]>
Browse files Browse the repository at this point in the history
        * 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.
  • Loading branch information
chaac committed Sep 18, 2005
1 parent 5d7396f commit 83d37a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2005-09-18 Vesa Jaaskelainen <[email protected]>

* 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 <[email protected]>

* normal/completion.c (complete_arguments): Add the qualifier
Expand Down
5 changes: 4 additions & 1 deletion video/i386/pc/vbe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83d37a6

Please sign in to comment.