mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Moved the system font from .data to .rodata
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4476 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c9671d17ec
commit
eba242b4cc
1 changed files with 4 additions and 4 deletions
|
|
@ -704,7 +704,7 @@ int gen_c_source(struct font* pf, char *path)
|
||||||
"*/\n"
|
"*/\n"
|
||||||
"\n"
|
"\n"
|
||||||
"/* Font character bitmap data. */\n"
|
"/* Font character bitmap data. */\n"
|
||||||
"static bitmap_t _font_bits[] = {\n"
|
"static const bitmap_t _font_bits[] = {\n"
|
||||||
};
|
};
|
||||||
|
|
||||||
ofp = fopen(path, "w");
|
ofp = fopen(path, "w");
|
||||||
|
|
@ -799,7 +799,7 @@ int gen_c_source(struct font* pf, char *path)
|
||||||
if (pf->offset) {
|
if (pf->offset) {
|
||||||
/* output offset table*/
|
/* output offset table*/
|
||||||
fprintf(ofp, "/* Character->glyph mapping. */\n"
|
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)
|
for (i=0; i<pf->size; ++i)
|
||||||
fprintf(ofp, " %ld,\t/* (0x%02x) */\n",
|
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*/
|
/* output width table for proportional fonts*/
|
||||||
if (pf->width) {
|
if (pf->width) {
|
||||||
fprintf(ofp, "/* Character width data. */\n"
|
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)
|
for (i=0; i<pf->size; ++i)
|
||||||
fprintf(ofp, " %d,\t/* (0x%02x) */\n",
|
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*/");
|
sprintf(buf, "0, /* fixed width*/");
|
||||||
|
|
||||||
fprintf(ofp, "/* Exported structure definition. */\n"
|
fprintf(ofp, "/* Exported structure definition. */\n"
|
||||||
"struct font sysfont = {\n"
|
"const struct font sysfont = {\n"
|
||||||
" \"%s\",\n"
|
" \"%s\",\n"
|
||||||
" %d,\n"
|
" %d,\n"
|
||||||
" %d,\n"
|
" %d,\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue