]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 29 Aug 2010 23:09:28 +0000 (01:09 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 29 Aug 2010 23:09:28 +0000 (01:09 +0200)
Mask out the bit 0x80 since it has other meaning that specifiing color.

ChangeLog
grub-core/term/i386/vga_common.c

index 4d5d6653acefaa83f7661eee57789130d3c2f1bc..9e84cc88b09dc49bfd089e5e5560c26f41cba245 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 02fb5c02d81adf9b10667890325fcfd2b8399db5..0c217697b27df3e5df98c55e27c47482c14b5d0d 100644 (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;