mirror of
https://github.com/mpv-player/mpv
synced 2024-12-20 13:52:10 +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:
parent
1c6b68ba4d
commit
731da20a8f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user