From 227253cfe4ab16c9758473194271ed48bf2e28b1 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Wed, 9 Oct 2002 23:13:25 +0000 Subject: 'Reset settings' now also resets wps, font and language (although you have to reboot to get back to the old language). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2552 a1c6a512-1295-4272-9138-f99709370657 --- firmware/font.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'firmware/font.c') 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) return totlen; } +void font_reset(void) +{ + memset(&font_ui, 0, sizeof(struct font)); +} + /* read and load font into incore font structure*/ struct font* font_load(char *path) { @@ -132,7 +137,7 @@ struct font* font_load(char *path) return NULL; } - memset(pf, 0, sizeof(struct font)); + font_reset(); /* currently, font loading replaces earlier font allocation*/ freeptr = (unsigned char *)(((int)mbuf + 3) & ~3); -- cgit v1.2.3