aboutsummaryrefslogtreecommitdiffhomepage
path: root/Gui/mplayer
diff options
context:
space:
mode:
authorGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-06-26 12:22:48 +0000
committerGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-06-26 12:22:48 +0000
commit731da20a8fd2d9163a550654a1670c0b1b7c719b (patch)
treecb0b655806025aa413250e3bc7957137cba48bd7 /Gui/mplayer
parent1c6b68ba4dfde2d9c946c0086707d936320354b6 (diff)
scroll strings from the left to right, patch by Andre Kuhne
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12686 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer')
-rw-r--r--Gui/mplayer/common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Gui/mplayer/common.c b/Gui/mplayer/common.c
index d206b4d27c..72f640d788 100644
--- a/Gui/mplayer/common.c
+++ b/Gui/mplayer/common.c
@@ -252,7 +252,8 @@ void Render( wsTWindow * window,wItem * Items,int nrItems,char * db,int size )
{
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;