summaryrefslogtreecommitdiff
path: root/firmware/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/font.c')
-rw-r--r--firmware/font.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/font.c b/firmware/font.c
index 6f5156cc73..2fe43b5fd3 100644
--- a/firmware/font.c
+++ b/firmware/font.c
@@ -114,6 +114,11 @@ static int readstrpad(char *buf, int totlen)
114 return totlen; 114 return totlen;
115} 115}
116 116
117void font_reset(void)
118{
119 memset(&font_ui, 0, sizeof(struct font));
120}
121
117/* read and load font into incore font structure*/ 122/* read and load font into incore font structure*/
118struct font* font_load(char *path) 123struct font* font_load(char *path)
119{ 124{
@@ -132,7 +137,7 @@ struct font* font_load(char *path)
132 return NULL; 137 return NULL;
133 } 138 }
134 139
135 memset(pf, 0, sizeof(struct font)); 140 font_reset();
136 141
137 /* currently, font loading replaces earlier font allocation*/ 142 /* currently, font loading replaces earlier font allocation*/
138 freeptr = (unsigned char *)(((int)mbuf + 3) & ~3); 143 freeptr = (unsigned char *)(((int)mbuf + 3) & ~3);