changeset 32852:cc4db17f2d2c

Cosmetic: Limit scope of internally used Fonts array.
author ib
date Sun, 20 Feb 2011 00:04:19 +0000
parents 4a0455472d13
children 17f47c07d1f7
files gui/skin/font.c gui/skin/font.h
diffstat 2 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/skin/font.c	Sat Feb 19 23:57:03 2011 +0000
+++ b/gui/skin/font.c	Sun Feb 20 00:04:19 2011 +0000
@@ -28,7 +28,7 @@
 #include "../interface.h"
 #include "libavutil/avstring.h"
 
-bmpFont * Fonts[MAX_FONTS] = {0};
+static bmpFont * Fonts[MAX_FONTS] = {0};
 
 static int fntAddNewFont( char * name )
 {
--- a/gui/skin/font.h	Sat Feb 19 23:57:03 2011 +0000
+++ b/gui/skin/font.h	Sun Feb 20 00:04:19 2011 +0000
@@ -47,8 +47,6 @@
  char            name[MAX_FONT_NAME];
 } bmpFont;
 
-extern bmpFont  * Fonts[MAX_FONTS];
-
 void fntFreeFont( void );
 int  fntFindID( char * name );
 int  fntTextWidth( int id, char * str );