瀏覽代碼

* Fixed VGA colours. The values only range from 0 to 63.

tags/v0.99.beta14
Sam Hocevar sam 19 年之前
父節點
當前提交
38f5d13943
共有 1 個檔案被更改,包括 18 行新增17 行删除
  1. +18
    -17
      caca/driver_vga.c

+ 18
- 17
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)


Loading…
取消
儲存