diff Gui/mplayer/pb.c @ 9088:731e5dc57436

- fix -fs - set sub_fps to null for new files - fix one sig11, if you play vcd, and the disc is not vcd, playtree is dead - add playbar vertical position support - etc.
author pontscho
date Sat, 25 Jan 2003 10:04:05 +0000
parents e0a3139a4dea
children 91ed6378b9a6
line wrap: on
line diff
--- a/Gui/mplayer/pb.c	Sat Jan 25 10:03:35 2003 +0000
+++ b/Gui/mplayer/pb.c	Sat Jan 25 10:04:05 2003 +0000
@@ -39,11 +39,19 @@
 
 void mplPBDraw( void )
 {
+ int x;
+ 
  if ( !appMPlayer.subWindow.isFullScreen ) return;
  if ( !mplPBVisible || !appMPlayer.barIsPresent ) return;
 
- appMPlayer.bar.x=( appMPlayer.subWindow.Width - appMPlayer.bar.width ) / 2;
-
+// appMPlayer.bar.x=( appMPlayer.subWindow.Width - appMPlayer.bar.width ) / 2;
+ switch( appMPlayer.bar.x )
+  {
+   case -1: x=( appMPlayer.subWindow.Width - appMPlayer.bar.width ) / 2; break;
+   case -2: x=( appMPlayer.subWindow.Width - appMPlayer.bar.width ); break;
+   default: x=appMPlayer.bar.x;
+  }
+	      
  switch ( mplPBFade )
   {
    case 1: // fade in
@@ -54,7 +62,7 @@
 	  mplPBFade=0;
 	  vo_mouse_autohide=0;
 	 }
-        wsMoveWindow( &appMPlayer.barWindow,0,appMPlayer.bar.x,mplPBLength ); 
+        wsMoveWindow( &appMPlayer.barWindow,0,x,mplPBLength ); 
 	break;
    case 2: // fade out
 	mplPBLength+=10;
@@ -66,7 +74,7 @@
           wsVisibleWindow( &appMPlayer.barWindow,wsHideWindow ); 
 	  return;
 	 }
-        wsMoveWindow( &appMPlayer.barWindow,0,appMPlayer.bar.x,mplPBLength ); 
+        wsMoveWindow( &appMPlayer.barWindow,0,x,mplPBLength ); 
 	break;
   }