1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-20 22:02:59 +00:00

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
This commit is contained in:
alex 2004-06-26 12:22:48 +00:00
parent 1c6b68ba4d
commit 731da20a8f

View File

@ -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;