# HG changeset patch # User ib # Date 1298119854 0 # Node ID fe8f9b5d3ba2c124bd0a83cde68733dfd8ce7e70 # Parent f698af71f5143c147add12e752809e0642c1823e Cosmetic: Limit scope of internal functions. diff -r f698af71f514 -r fe8f9b5d3ba2 gui/skin/font.c --- a/gui/skin/font.c Sat Feb 19 09:17:38 2011 +0000 +++ b/gui/skin/font.c Sat Feb 19 12:50:54 2011 +0000 @@ -29,7 +29,7 @@ bmpFont * Fonts[MAX_FONTS] = {0}; -int fntAddNewFont( char * name ) +static int fntAddNewFont( char * name ) { int id, i; @@ -155,7 +155,7 @@ // get Fnt index of character (utf8 or normal one) *str points to, // then move pointer to next/previous character -int fntGetCharIndex( int id, unsigned char **str, gboolean utf8, int direction ) +static int fntGetCharIndex( int id, unsigned char **str, gboolean utf8, int direction ) { unsigned char *p, uchar[6] = ""; // glib implements 31-bit UTF-8 int i, c = -1; @@ -211,7 +211,7 @@ return size; } -int fntTextHeight( int id,char * str ) +static int fntTextHeight( int id,char * str ) { int max = 0; gboolean utf8; diff -r f698af71f514 -r fe8f9b5d3ba2 gui/skin/font.h --- a/gui/skin/font.h Sat Feb 19 09:17:38 2011 +0000 +++ b/gui/skin/font.h Sat Feb 19 12:50:54 2011 +0000 @@ -19,7 +19,6 @@ #ifndef MPLAYER_GUI_FONT_H #define MPLAYER_GUI_FONT_H -#include #include "gui/bitmap.h" #include "gui/app.h" @@ -50,11 +49,8 @@ extern bmpFont * Fonts[MAX_FONTS]; -int fntAddNewFont( char * name ); void fntFreeFont( void ); int fntFindID( char * name ); -int fntGetCharIndex( int id, unsigned char **str, gboolean utf8, int direction ); -int fntTextHeight( int id, char * str ); int fntTextWidth( int id, char * str ); int fntRead( char * path, char * fname );