[Mplayer-cvslog] CVS: main/Gui/skin font.c,1.4,1.5
Zoltan Ponekker
pontscho at mplayer.dev.hu
Sun Feb 24 20:34:54 CET 2002
Update of /cvsroot/mplayer/main/Gui/skin
In directory mplayer:/var/tmp.root/cvs-serv14873/Gui/skin
Modified Files:
font.c
Log Message:
fix playtree bug. but ... i dont' see this ... bazmeg
Index: font.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/skin/font.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- font.c 23 Feb 2002 15:12:54 -0000 1.4
+++ font.c 24 Feb 2002 19:34:52 -0000 1.5
@@ -121,6 +121,7 @@
txSample * fntRender( int id,int px,int sx,char * fmt,... )
{
txSample * tmp = NULL;
+ txSample tmp2;
char p[512];
va_list ap;
unsigned long * ibuf;
@@ -147,7 +148,7 @@
ibuf=(unsigned long *)Fonts[id]->Bitmap.Image;
for ( i=0;i < (int)strlen( p );i++ )
{
- int c = (int)p[i];
+ char c = p[i];
if ( Fonts[id]->Fnt[c].x == -1 ) c=32;
for ( oy=0,y=Fonts[id]->Fnt[c].y;y < Fonts[id]->Fnt[c].y + Fonts[id]->Fnt[c].sy; y++,oy++ )
for ( ox=0,x=Fonts[id]->Fnt[c].x;x < Fonts[id]->Fnt[c].x + Fonts[id]->Fnt[c].sx; x++,ox++ )
@@ -159,7 +160,6 @@
if ( ( sx > 0 )&&( sx < tmp->Width ) )
{
- txSample tmp2;
tmp2.ImageSize=sx * tmp->Height * 4;
if ( ( tmp2.Image=malloc( tmp2.ImageSize ) ) == NULL ) { free( tmp->Image ); return NULL; }
More information about the MPlayer-cvslog
mailing list