diff --git a/caca/driver_vga.c b/caca/driver_vga.c index a785636..d6285ba 100644 --- a/caca/driver_vga.c +++ b/caca/driver_vga.c @@ -31,23 +31,24 @@ static uint8_t const vga_colors[][4] = { - { 0, 0x20, 0x20, 0x20 }, - { 1, 0x20, 0x20, 0x7f }, - { 2, 0x20, 0x7f, 0x20 }, - { 3, 0x20, 0x7f, 0x7f }, - { 4, 0x7f, 0x20, 0x20 }, - { 5, 0x7f, 0x20, 0x7f }, - { 0x14, 0x7f, 0x7f, 0x20 }, - { 7, 0x7f, 0x7f, 0x7f }, - - { 0x38, 0x40, 0x40, 0x40 }, - { 0x39, 0x40, 0x40, 0xff }, - { 0x3a, 0x40, 0xff, 0x40 }, - { 0x3b, 0x40, 0xff, 0xff }, - { 0x3c, 0xff, 0x40, 0x40 }, - { 0x3d, 0xff, 0x40, 0xff }, - { 0x3e, 0xff, 0xff, 0x40 }, - { 0x3f, 0xff, 0xff, 0xff } + /* Colour values range from 0x00 to 0x3f */ + { 0, 0x00, 0x00, 0x00 }, + { 1, 0x00, 0x00, 0x1f }, + { 2, 0x00, 0x1f, 0x00 }, + { 3, 0x00, 0x1f, 0x1f }, + { 4, 0x1f, 0x00, 0x00 }, + { 5, 0x1f, 0x00, 0x1f }, + { 0x14, 0x1f, 0x1f, 0x00 }, + { 7, 0x1f, 0x1f, 0x1f }, + + { 0x38, 0x0f, 0x0f, 0x0f }, + { 0x39, 0x0f, 0x0f, 0x3f }, + { 0x3a, 0x0f, 0x3f, 0x0f }, + { 0x3b, 0x0f, 0x3f, 0x3f }, + { 0x3c, 0x3f, 0x0f, 0x0f }, + { 0x3d, 0x3f, 0x0f, 0x3f }, + { 0x3e, 0x3f, 0x3f, 0x0f }, + { 0x3f, 0x3f, 0x3f, 0x3f }, }; static int vga_init_graphics(caca_t *kk)