Browse Source

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

tags/v0.99.beta18
Sam Hocevar sam 14 years ago
parent
commit
2bf74e6df7
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      caca/mono9.data
  2. +1
    -1
      caca/monobold12.data
  3. +1
    -1
      tools/makefont.c

+ 1
- 1
caca/mono9.data View File

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


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


+ 1
- 1
caca/monobold12.data View File

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


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


+ 1
- 1
tools/makefont.c View File

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


printf("static size_t const %s_size = %i;\n", printf("static size_t const %s_size = %i;\n",
prefix, 4 + control_size + data_size); 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); prefix, 4 + control_size + data_size);
printf("{\n"); printf("{\n");




Loading…
Cancel
Save