Mercurial > mplayer.hg
comparison Gui/mplayer/common.c @ 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 | 9a495bdc3a1e |
children | 0230544f52a1 |
comparison
equal
deleted
inserted
replaced
12684:47598beff93a | 12685:b4587790a399 |
---|---|
250 if ( image ) PutImage( image,item->x,item->y,1,0 ); | 250 if ( image ) PutImage( image,item->x,item->y,1,0 ); |
251 case itDLabel: | 251 case itDLabel: |
252 { | 252 { |
253 char * t = Translate( item->label ); | 253 char * t = Translate( item->label ); |
254 int l = fntTextWidth( item->fontid,t ); | 254 int l = fntTextWidth( item->fontid,t ); |
255 image=fntRender( item,(GetTimerMS() / 20)%(l?l:item->width),"%s",t ); | 255 l=(l?l:item->width); |
256 image=fntRender( item,l-(GetTimerMS() / 20)%l,"%s",t ); | |
256 } | 257 } |
257 if ( image ) PutImage( image,item->x,item->y,1,0 ); | 258 if ( image ) PutImage( image,item->x,item->y,1,0 ); |
258 break; | 259 break; |
259 } | 260 } |
260 } | 261 } |