[Mplayer-cvslog] CVS: main/Gui/mplayer common.c,1.5,1.6

Alex Beregszaszi syncmail at mplayerhq.hu
Sat Jun 26 14:22:51 CEST 2004


CVS change done by Alex Beregszaszi

Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mail:/var2/tmp/cvs-serv6569

Modified Files:
	common.c 
Log Message:
scroll strings from the left to right, patch by Andre Kuhne

Index: common.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/common.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- common.c	25 Jun 2004 16:49:52 -0000	1.5
+++ common.c	26 Jun 2004 12:22:48 -0000	1.6
@@ -252,7 +252,8 @@
           {
            char * t = Translate( item->label );
            int    l = fntTextWidth( item->fontid,t );
-           image=fntRender( item,(GetTimerMS() / 20)%(l?l:item->width),"%s",t );
+           l=(l?l:item->width);
+           image=fntRender( item,l-(GetTimerMS() / 20)%l,"%s",t );
 	  }
           if ( image ) PutImage( image,item->x,item->y,1,0 );
           break;




More information about the MPlayer-cvslog mailing list