diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-04-06 23:21:45 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-04-06 23:21:45 +0000 |
| commit | eba242b4cc180e23338ffc21b7c50e2466b0782f (patch) | |
| tree | a5d664f8c94970479a5d51a0b1ee4663c6dbeee0 | |
| parent | c9671d17ecc8864d310f4fe424772856a6554e14 (diff) | |
| download | rockbox-eba242b4cc180e23338ffc21b7c50e2466b0782f.zip rockbox-eba242b4cc180e23338ffc21b7c50e2466b0782f.tar.gz rockbox-eba242b4cc180e23338ffc21b7c50e2466b0782f.tar.bz2 rockbox-eba242b4cc180e23338ffc21b7c50e2466b0782f.tar.xz | |
Moved the system font from .data to .rodata
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4476 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | tools/convbdf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/convbdf.c b/tools/convbdf.c index ac88ea8..9686112 100644 --- a/tools/convbdf.c +++ b/tools/convbdf.c @@ -704,7 +704,7 @@ int gen_c_source(struct font* pf, char *path) "*/\n" "\n" "/* Font character bitmap data. */\n" - "static bitmap_t _font_bits[] = {\n" + "static const bitmap_t _font_bits[] = {\n" }; ofp = fopen(path, "w"); @@ -799,7 +799,7 @@ int gen_c_source(struct font* pf, char *path) if (pf->offset) { /* output offset table*/ fprintf(ofp, "/* Character->glyph mapping. */\n" - "static unsigned long _sysfont_offset[] = {\n"); + "static const unsigned long _sysfont_offset[] = {\n"); for (i=0; i<pf->size; ++i) fprintf(ofp, " %ld,\t/* (0x%02x) */\n", @@ -810,7 +810,7 @@ int gen_c_source(struct font* pf, char *path) /* output width table for proportional fonts*/ if (pf->width) { fprintf(ofp, "/* Character width data. */\n" - "static unsigned char _sysfont_width[] = {\n"); + "static const unsigned char _sysfont_width[] = {\n"); for (i=0; i<pf->size; ++i) fprintf(ofp, " %d,\t/* (0x%02x) */\n", @@ -830,7 +830,7 @@ int gen_c_source(struct font* pf, char *path) sprintf(buf, "0, /* fixed width*/"); fprintf(ofp, "/* Exported structure definition. */\n" - "struct font sysfont = {\n" + "const struct font sysfont = {\n" " \"%s\",\n" " %d,\n" " %d,\n" |