[MPlayer-cvslog] r32794 - trunk/gui/skin/font.c
ib
subversion at mplayerhq.hu
Tue Jan 18 11:57:53 CET 2011
Author: ib
Date: Tue Jan 18 11:57:52 2011
New Revision: 32794
Log:
Allow double quote to be defined in the font description file:
""" = x, y, width, height
Modified:
trunk/gui/skin/font.c
Modified: trunk/gui/skin/font.c
==============================================================================
--- trunk/gui/skin/font.c Mon Jan 17 20:45:40 2011 (r32793)
+++ trunk/gui/skin/font.c Tue Jan 18 11:57:52 2011 (r32794)
@@ -101,7 +101,8 @@ int fntRead( char * path,char * fname )
{
int i;
cutItem( command,command,'"',1 );
- i=(int)command[0];
+ if ( !command[0] ) i=(int)'"';
+ else i=(int)command[0];
cutItem( param,tmp,',',0 ); Fonts[id]->Fnt[i].x=atoi( tmp );
cutItem( param,tmp,',',1 ); Fonts[id]->Fnt[i].y=atoi( tmp );
cutItem( param,tmp,',',2 ); Fonts[id]->Fnt[i].sx=atoi( tmp );
More information about the MPlayer-cvslog
mailing list