瀏覽代碼

Mark the font data as const. We no longer modify it in place.

tags/v0.99.beta18
Sam Hocevar sam 14 年之前
父節點
當前提交
2bf74e6df7
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      caca/mono9.data
  2. +1
    -1
      caca/monobold12.data
  3. +1
    -1
      tools/makefont.c

+ 1
- 1
caca/mono9.data 查看文件

@@ -5,7 +5,7 @@
*/

static size_t const mono9_size = 246854;
static uint8_t mono9_data[246854] =
static uint8_t const mono9_data[246854] =
{
/* file: */
0xCA,0xCA, /* caca_header */


+ 1
- 1
caca/monobold12.data 查看文件

@@ -5,7 +5,7 @@
*/

static size_t const monobold12_size = 419205;
static uint8_t monobold12_data[419205] =
static uint8_t const monobold12_data[419205] =
{
/* file: */
0xCA,0xCA, /* caca_header */


+ 1
- 1
tools/makefont.c 查看文件

@@ -188,7 +188,7 @@ int main(int argc, char *argv[])

printf("static size_t const %s_size = %i;\n",
prefix, 4 + control_size + data_size);
printf("static uint8_t %s_data[%i] =\n",
printf("static uint8_t const %s_data[%i] =\n",
prefix, 4 + control_size + data_size);
printf("{\n");



Loading…
取消
儲存