[MPlayer-cvslog] r37888 - in trunk/gui: app/app.c skin/font.c skin/font.h

ib subversion at mplayerhq.hu
Thu Aug 25 14:19:14 EEST 2016


Author: ib
Date: Thu Aug 25 14:19:14 2016
New Revision: 37888

Log:
Rename fntFreeFont() fntFreeFonts().

This makes room for a definition of fntFreeFont() freeing only one
specific font.

Modified:
   trunk/gui/app/app.c
   trunk/gui/skin/font.c
   trunk/gui/skin/font.h

Modified: trunk/gui/app/app.c
==============================================================================
--- trunk/gui/app/app.c	Thu Aug 25 14:17:42 2016	(r37887)
+++ trunk/gui/app/app.c	Thu Aug 25 14:19:14 2016	(r37888)
@@ -135,7 +135,7 @@ void appFreeStruct(void)
     guiApp.IndexOfPlaybarItems = -1;
     guiApp.IndexOfMenuItems    = -1;
 
-    fntFreeFont();
+    fntFreeFonts();
 }
 
 /**

Modified: trunk/gui/skin/font.c
==============================================================================
--- trunk/gui/skin/font.c	Thu Aug 25 14:17:42 2016	(r37887)
+++ trunk/gui/skin/font.c	Thu Aug 25 14:19:14 2016	(r37888)
@@ -81,7 +81,7 @@ static int fntAddNewFont(char *name)
 /**
  * @brief Free all memory allocated to fonts.
  */
-void fntFreeFont(void)
+void fntFreeFonts(void)
 {
     int i;
 

Modified: trunk/gui/skin/font.h
==============================================================================
--- trunk/gui/skin/font.h	Thu Aug 25 14:17:42 2016	(r37887)
+++ trunk/gui/skin/font.h	Thu Aug 25 14:19:14 2016	(r37888)
@@ -41,7 +41,7 @@ typedef struct {
 } bmpFont;
 
 int fntFindID(char *name);
-void fntFreeFont(void);
+void fntFreeFonts(void);
 int fntRead(char *path, char *fname);
 guiImage *fntTextRender(guiItem *item, int px, char *txt);
 int fntTextWidth(int id, char *str);


More information about the MPlayer-cvslog mailing list