r37889 - trunk/gui/skin/font.c
25 Aug
2016
25 Aug
'16
11:21 a.m.
Author: ib Date: Thu Aug 25 14:21:00 2016 New Revision: 37889 Log: Add fntFreeFont(). This opens up the possibility to free a specific font. Modified: trunk/gui/skin/font.c Modified: trunk/gui/skin/font.c ============================================================================== --- trunk/gui/skin/font.c Thu Aug 25 14:19:14 2016 (r37888) +++ trunk/gui/skin/font.c Thu Aug 25 14:21:00 2016 (r37889) @@ -79,6 +79,17 @@ static int fntAddNewFont(char *name) } /** + * @brief Free all memory allocated to a font. + * + * @param id font ID + */ +static void fntFreeFont(int id) +{ + bpFree(&Fonts[id]->Bitmap); + nfree(Fonts[id]); +} + +/** * @brief Free all memory allocated to fonts. */ void fntFreeFonts(void)
3696
Age (days ago)
3696
Last active (days ago)
0 comments
1 participants
participants (1)
-
ib