changeset 12685:b4587790a399

scroll strings from the left to right, patch by Andre Kuhne
author alex
date Sat, 26 Jun 2004 12:22:48 +0000
parents 47598beff93a
children cc5aa27a50ff
files Gui/mplayer/common.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;