Author: oxygene Date: 2008-09-30 12:38:32 +0200 (Tue, 30 Sep 2008) New Revision: 71
Modified: trunk/filo/main/grub/builtins.c Log: fix "color" command
fixes #15
Modified: trunk/filo/main/grub/builtins.c =================================================================== --- trunk/filo/main/grub/builtins.c 2008-09-30 09:42:37 UTC (rev 70) +++ trunk/filo/main/grub/builtins.c 2008-09-30 10:38:32 UTC (rev 71) @@ -182,12 +182,6 @@ /* Terminate the string STR. */ *ptr++ = 0;
- /* If STR contains the prefix "blink-", then set the `blink' bit in COLOR. */ - if (substring("blink-", str) <= 0) { - color = 0x80; - str += 6; - } - /* Search for the color name. */ for (i = 0; i < 16; i++) if (strcmp(color_list[i], str) == 0) { @@ -202,13 +196,13 @@ nul_terminate(str);
/* Search for the color name. */ - for (i = 0; i < 8; i++) + for (i = 0; i < 16; i++) if (strcmp(color_list[i], str) == 0) { color |= i; break; }
- if (i == 8) + if (i == 16) return -1;
return color;