summaryrefslogtreecommitdiff
path: root/firmware/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/font.c')
-rw-r--r--firmware/font.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/firmware/font.c b/firmware/font.c
index 577fb8af81..0f977c7059 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -345,10 +345,8 @@ static struct font* font_load_cached(struct font* pf)
345 return pf; 345 return pf;
346} 346}
347 347
348static bool internal_load_font(int font_id, const char *path, 348static bool internal_load_font(const char *path, char *buf,
349 char *buf, size_t buf_size, 349 size_t buf_size, int handle)
350 int handle
351 )
352{ 350{
353 size_t size; 351 size_t size;
354 struct font* pf = pf_from_handle(handle); 352 struct font* pf = pf_from_handle(handle);
@@ -520,7 +518,7 @@ int font_load_ex(const char *path, size_t buffer_size)
520 buffer = buffer_from_handle(handle); 518 buffer = buffer_from_handle(handle);
521 lock_font_handle(handle, true); 519 lock_font_handle(handle, true);
522 520
523 if (!internal_load_font(font_id, path, buffer, buffer_size, handle)) 521 if (!internal_load_font(path, buffer, buffer_size, handle))
524 { 522 {
525 lock_font_handle(handle, false); 523 lock_font_handle(handle, false);
526 core_free(handle); 524 core_free(handle);