diff options
Diffstat (limited to 'firmware/font.c')
-rw-r--r-- | firmware/font.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/font.c b/firmware/font.c index f33490869a..343dd0b278 100644 --- a/firmware/font.c +++ b/firmware/font.c | |||
@@ -53,9 +53,9 @@ static unsigned char *freeptr = mbuf; | |||
53 | static unsigned char *fileptr; | 53 | static unsigned char *fileptr; |
54 | static unsigned char *eofptr; | 54 | static unsigned char *eofptr; |
55 | 55 | ||
56 | static void rotate_font_bits(struct font* pf); | 56 | static void rotate_font_bits(const struct font* pf); |
57 | static void rotleft(unsigned char *dst, | 57 | static void rotleft(unsigned char *dst, |
58 | bitmap_t *src, | 58 | const bitmap_t *src, |
59 | unsigned int width, | 59 | unsigned int width, |
60 | unsigned int height); | 60 | unsigned int height); |
61 | 61 | ||
@@ -120,7 +120,7 @@ void font_reset(void) | |||
120 | } | 120 | } |
121 | 121 | ||
122 | /* read and load font into incore font structure*/ | 122 | /* read and load font into incore font structure*/ |
123 | struct font* font_load(char *path) | 123 | struct font* font_load(const char *path) |
124 | { | 124 | { |
125 | int fd, filesize; | 125 | int fd, filesize; |
126 | unsigned short maxwidth, height, ascent, pad; | 126 | unsigned short maxwidth, height, ascent, pad; |
@@ -263,7 +263,7 @@ struct font* font_get(int font) | |||
263 | } | 263 | } |
264 | 264 | ||
265 | /* convert font bitmap data inplace to rockbox format*/ | 265 | /* convert font bitmap data inplace to rockbox format*/ |
266 | static void rotate_font_bits(struct font* pf) | 266 | static void rotate_font_bits(const struct font* pf) |
267 | { | 267 | { |
268 | int i; | 268 | int i; |
269 | unsigned long defaultchar = pf->defaultchar - pf->firstchar; | 269 | unsigned long defaultchar = pf->defaultchar - pf->firstchar; |
@@ -305,8 +305,8 @@ static void rotate_font_bits(struct font* pf) | |||
305 | * Doing it this way keeps fonts in standard formats, | 305 | * Doing it this way keeps fonts in standard formats, |
306 | * as well as keeping Rockbox hw bitmap format. | 306 | * as well as keeping Rockbox hw bitmap format. |
307 | */ | 307 | */ |
308 | static void rotleft(unsigned char *dst, bitmap_t *src, unsigned int width, | 308 | static void rotleft(unsigned char *dst, const bitmap_t *src, |
309 | unsigned int height) | 309 | unsigned int width, unsigned int height) |
310 | { | 310 | { |
311 | unsigned int i,j; | 311 | unsigned int i,j; |
312 | unsigned int src_words; /* # words of input image*/ | 312 | unsigned int src_words; /* # words of input image*/ |