diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-04-13 11:17:42 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-04-13 11:17:42 +0000 |
commit | 7480ff900a561d26012314a02d7b936731287c0b (patch) | |
tree | 1cae4480f7f892796e63caf6165ec893ffb0f346 /tools | |
parent | 65ef9640d8a3fba6641b324bd299c91350ab8fb3 (diff) |
Reverted my brainless const'ing of the font data
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4492 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rw-r--r-- | tools/convbdf.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/tools/convbdf.c b/tools/convbdf.c index d972cc17ca..ac88ea889b 100644 --- a/tools/convbdf.c +++ b/tools/convbdf.c @@ -703,14 +703,8 @@ int gen_c_source(struct font* pf, char *path) " %s\n" "*/\n" "\n" - "#ifdef SIMULATOR\n" - "#define FONT_CONST\n" - "#else\n" - "#define FONT_CONST const\n" - "#endif\n" - "\n" "/* Font character bitmap data. */\n" - "static FONT_CONST bitmap_t _font_bits[] = {\n" + "static bitmap_t _font_bits[] = {\n" }; ofp = fopen(path, "w"); @@ -805,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 FONT_CONST unsigned long _sysfont_offset[] = {\n"); + "static unsigned long _sysfont_offset[] = {\n"); for (i=0; i<pf->size; ++i) fprintf(ofp, " %ld,\t/* (0x%02x) */\n", @@ -816,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 FONT_CONST unsigned char _sysfont_width[] = {\n"); + "static unsigned char _sysfont_width[] = {\n"); for (i=0; i<pf->size; ++i) fprintf(ofp, " %d,\t/* (0x%02x) */\n", @@ -836,15 +830,15 @@ int gen_c_source(struct font* pf, char *path) sprintf(buf, "0, /* fixed width*/"); fprintf(ofp, "/* Exported structure definition. */\n" - "FONT_CONST struct font sysfont = {\n" + "struct font sysfont = {\n" " \"%s\",\n" " %d,\n" " %d,\n" " %d,\n" " %d,\n" " %d,\n" - " (bitmap_t *)_font_bits,\n" - " (unsigned long *)%s\n" + " _font_bits,\n" + " %s\n" " %s\n" " %d,\n" " sizeof(_font_bits)/sizeof(bitmap_t),\n" |