# HG changeset patch # User alex # Date 1088252568 0 # Node ID b4587790a39969cc46d483e7a7e2a7b94e74d446 # Parent 47598beff93ae6e4a463c88ba6c1995a96e8b124 scroll strings from the left to right, patch by Andre Kuhne diff -r 47598beff93a -r b4587790a399 Gui/mplayer/common.c --- a/Gui/mplayer/common.c Sat Jun 26 11:20:20 2004 +0000 +++ b/Gui/mplayer/common.c Sat Jun 26 12:22:48 2004 +0000 @@ -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;