* grub-core/term/i386/vga_common.c (grub_console_setcolorstate):

Mask out the bit 0x80 since it has other meaning that specifiing color.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-08-30 01:09:28 +02:00
parent 51c23159b1
commit 3dca01d7e3
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
Mask out the bit 0x80 since it has other meaning that specifiing color.
2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
New relocator. Allows for more kernel support and more straightforward

View file

@ -34,13 +34,13 @@ grub_console_setcolorstate (struct grub_term_output *term,
{
switch (state) {
case GRUB_TERM_COLOR_STANDARD:
grub_console_cur_color = GRUB_TERM_DEFAULT_STANDARD_COLOR;
grub_console_cur_color = GRUB_TERM_DEFAULT_STANDARD_COLOR & 0x7f;
break;
case GRUB_TERM_COLOR_NORMAL:
grub_console_cur_color = term->normal_color;
grub_console_cur_color = term->normal_color & 0x7f;
break;
case GRUB_TERM_COLOR_HIGHLIGHT:
grub_console_cur_color = term->highlight_color;
grub_console_cur_color = term->highlight_color & 0x7f;
break;
default:
break;