385b74b7ff
Rename vt_generate_vga_palette() to vt_generate_cons_palette() and change it to build a palette where the color index is the same than in terminal escape codes, not the VGA index. That's what TCHAR_CREATE() uses and passes to vt(4). The main differences between both orders are: o Blue and red are swapped (1 <-> 4) o Yellow and cyan are swapped (3 <-> 6) The problem remained unnoticed, because the RGB bit indexes passed to vt_generate_vga_palette() were reversed. This inversion was cancelled by the colors inversions in the generated palette. For instance, red (0xff0000) and blue (0x0000ff) have bytes in opposite order, but were swapped in the palette. But after changing the value of blue (see last paragraph), the modified color was in fact the red one. This commit includes a fix to creator_vt.c, submitted by Nathan Whitehorn: fb_cmsize is set to 16. Before this, the generated palette would be overwritte. This fixes colors on sparc64 with a Creator3D adapter. While here, tune the palette to better match console colors and improve the readability (especially the dark blue). Submitted by: nwhitehorn (fix to creator_vt.c) MFC after: 1 week |
||
---|---|---|
.. | ||
boot_font.c | ||
creator_vt.c | ||
creator.c | ||
creatorreg.h | ||
fb_if.m | ||
fb.c | ||
fbd.c | ||
fbreg.h | ||
gallant12x22.c | ||
gfb.h | ||
machfb.c | ||
machfbreg.h | ||
s3_pci.c | ||
splash_bmp.c | ||
splash_pcx.c | ||
splash_txt.c | ||
splash.c | ||
splashreg.h | ||
vesa.c | ||
vesa.h | ||
vga.c | ||
vgareg.h |