[Mplayer-cvslog] CVS: main/Gui/mplayer mw.h,1.1,1.2

Arpi of Ize arpi at mplayer.dev.hu
Sun Aug 26 23:04:43 CEST 2001


Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mplayer:/var/tmp.root/cvs-serv18537/mplayer

Modified Files:
	mw.h 
Log Message:
misc fixes/cleanup, Skin path stuff fixed

Index: mw.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/mw.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- mw.h	25 Aug 2001 21:04:28 -0000	1.1
+++ mw.h	26 Aug 2001 21:04:40 -0000	1.2
@@ -30,8 +30,7 @@
      switch ( str[++i] )
       {
        case 't':
-            if ( mplShMem->Track < 10 ) strcat( trbuf,"0" );
-            sprintf( tmp,"%d",mplShMem->Track ); strcat( trbuf,tmp );
+            sprintf( tmp,"%02d",mplShMem->Track ); strcat( trbuf,tmp );
             break;
        case 'f':
             if ( strlen( gtkShMem->fs.filename ) )
@@ -85,39 +84,17 @@
             s=t%60; m=( ( t - s ) / 60 ) % 60;
             sprintf( tmp,"%04d:%02d",m,s ); strcat( trbuf,tmp );
             break;
-       case '3':
-            sprintf( tmp,"%02d",( mplShMem->TimeSec - ( mplShMem->TimeSec % 60 ) ) / 3600 ); strcat( trbuf,tmp );
-            break;
-       case '4':
-            sprintf( tmp,"%02d",( ( mplShMem->TimeSec - ( mplShMem->TimeSec % 60 ) ) / 60 ) % 60 ); strcat( trbuf,tmp );
-            break;
-       case '5':
-            sprintf( tmp,"%02d",mplShMem->TimeSec % 60 ); strcat( trbuf,tmp );
-            break;
-       case 'v':
-            sprintf( tmp,"%3.2f%%",mplShMem->Volume ); strcat( trbuf,tmp );
-            break;
-       case 'V':
-            sprintf( tmp,"%3.1f",mplShMem->Volume ); strcat( trbuf,tmp );
-            break;
-       case 'b':
-            sprintf( tmp,"%3.2f%%",mplShMem->Balance ); strcat( trbuf,tmp );
-            break;
-       case 'B':
-            sprintf( tmp,"%3.1f",mplShMem->Balance ); strcat( trbuf,tmp );
-            break;
-       case 's':
-            if ( mplShMem->Playing == 0 ) strcat( trbuf,"s" );
-            break;
-       case 'l':
-            if ( mplShMem->Playing == 1 ) strcat( trbuf,"p" );
-            break;
-       case 'e':
-            if ( mplShMem->Playing == 2 ) strcat( trbuf,"e" );
-            break;
-       case '$':
-            strcat( trbuf,"$" );
-            break;
+       case '3': sprintf( tmp,"%02d",( mplShMem->TimeSec - ( mplShMem->TimeSec % 60 ) ) / 3600 ); strcat( trbuf,tmp ); break;
+       case '4': sprintf( tmp,"%02d",( ( mplShMem->TimeSec - ( mplShMem->TimeSec % 60 ) ) / 60 ) % 60 ); strcat( trbuf,tmp ); break;
+       case '5': sprintf( tmp,"%02d",mplShMem->TimeSec % 60 ); strcat( trbuf,tmp ); break;
+       case 'v': sprintf( tmp,"%3.2f%%",mplShMem->Volume ); strcat( trbuf,tmp ); break;
+       case 'V': sprintf( tmp,"%3.1f",mplShMem->Volume ); strcat( trbuf,tmp ); break;
+       case 'b': sprintf( tmp,"%3.2f%%",mplShMem->Balance ); strcat( trbuf,tmp ); break;
+       case 'B': sprintf( tmp,"%3.1f",mplShMem->Balance ); strcat( trbuf,tmp ); break;
+       case 's': if ( mplShMem->Playing == 0 ) strcat( trbuf,"s" ); break;
+       case 'l': if ( mplShMem->Playing == 1 ) strcat( trbuf,"p" ); break;
+       case 'e': if ( mplShMem->Playing == 2 ) strcat( trbuf,"e" ); break;
+       case '$': strcat( trbuf,"$" ); break;
        default: continue;
       }
      c=strlen( trbuf );
@@ -182,7 +159,8 @@
             image=fntRender( item->fontid,0,item->width,"%s",item->label );
             goto drawrenderedtext;
        case itDLabel:
-            image=fntRender( item->fontid,( mplTimer / 10 )%item->width,item->width,"%s",Translate( item->label ) );
+//            image=fntRender( item->fontid,( mplTimer / 10 )%item->width,item->width,"%s",Translate( item->label ) );
+            image=fntRender( item->fontid,( mplRedrawTimer / 10 )%item->width,item->width,"%s",Translate( item->label ) );
 drawrenderedtext:
             PutImage( image,item->x,item->y,1,0 );
             if ( image )
@@ -197,6 +175,7 @@
    mplMainRender=0;
   }
  wsPutImage( &appMPlayer.mainWindow );
+ XFlush( wsDisplay );
 }
 
 void mplMsgHandle( int msg,float param )




More information about the MPlayer-cvslog mailing list