diff options
author | William Wilgus <wilgus.william@gmail.com> | 2023-02-15 17:38:58 -0500 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2023-02-15 23:02:36 -0500 |
commit | a749a95840af1d2d17d1f48440231da64c92ce90 (patch) | |
tree | 3eb05c2157e851efbf4da122c71d28709d5e8cb6 /firmware/export/font.h | |
parent | e7a01ca4b2d4935af8d2b4c359fd0ee4aa85f2e2 (diff) | |
download | rockbox-a749a95840af1d2d17d1f48440231da64c92ce90.tar.gz rockbox-a749a95840af1d2d17d1f48440231da64c92ce90.zip |
font.c cleanup
find_font_index can use font_filename_matches_loaded_id()
font_path_to_glyph_path doesn't need strcat
Change-Id: I8d1d36a68abbc700078d651eed930035641b6240
Diffstat (limited to 'firmware/export/font.h')
-rw-r--r-- | firmware/export/font.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/font.h b/firmware/export/font.h index a0a7c37ba9..2334a8bd1a 100644 --- a/firmware/export/font.h +++ b/firmware/export/font.h | |||
@@ -117,7 +117,7 @@ struct font { | |||
117 | 117 | ||
118 | /* font routines*/ | 118 | /* font routines*/ |
119 | void font_init(void) INIT_ATTR; | 119 | void font_init(void) INIT_ATTR; |
120 | bool font_filename_matches_loaded_id(int font_id, char *filename); | 120 | bool font_filename_matches_loaded_id(int font_id, const char *filename); |
121 | int font_load(const char *path); | 121 | int font_load(const char *path); |
122 | int font_load_ex(const char *path, size_t buffer_size, int glyphs); | 122 | int font_load_ex(const char *path, size_t buffer_size, int glyphs); |
123 | void font_unload(int font_id); | 123 | void font_unload(int font_id); |