Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
9087:ace727b8c2dc | 9088:731e5dc57436 |
---|---|
37 int mplPBLength = 0; | 37 int mplPBLength = 0; |
38 int mplPBFade = 0; | 38 int mplPBFade = 0; |
39 | 39 |
40 void mplPBDraw( void ) | 40 void mplPBDraw( void ) |
41 { | 41 { |
42 int x; | |
43 | |
42 if ( !appMPlayer.subWindow.isFullScreen ) return; | 44 if ( !appMPlayer.subWindow.isFullScreen ) return; |
43 if ( !mplPBVisible || !appMPlayer.barIsPresent ) return; | 45 if ( !mplPBVisible || !appMPlayer.barIsPresent ) return; |
44 | 46 |
45 appMPlayer.bar.x=( appMPlayer.subWindow.Width - appMPlayer.bar.width ) / 2; | 47 // appMPlayer.bar.x=( appMPlayer.subWindow.Width - appMPlayer.bar.width ) / 2; |
46 | 48 switch( appMPlayer.bar.x ) |
49 { | |
50 case -1: x=( appMPlayer.subWindow.Width - appMPlayer.bar.width ) / 2; break; | |
51 case -2: x=( appMPlayer.subWindow.Width - appMPlayer.bar.width ); break; | |
52 default: x=appMPlayer.bar.x; | |
53 } | |
54 | |
47 switch ( mplPBFade ) | 55 switch ( mplPBFade ) |
48 { | 56 { |
49 case 1: // fade in | 57 case 1: // fade in |
50 mplPBLength--; | 58 mplPBLength--; |
51 if ( appMPlayer.subWindow.Height - appMPlayer.bar.height >= mplPBLength ) | 59 if ( appMPlayer.subWindow.Height - appMPlayer.bar.height >= mplPBLength ) |
52 { | 60 { |
53 mplPBLength=appMPlayer.subWindow.Height - appMPlayer.bar.height; | 61 mplPBLength=appMPlayer.subWindow.Height - appMPlayer.bar.height; |
54 mplPBFade=0; | 62 mplPBFade=0; |
55 vo_mouse_autohide=0; | 63 vo_mouse_autohide=0; |
56 } | 64 } |
57 wsMoveWindow( &appMPlayer.barWindow,0,appMPlayer.bar.x,mplPBLength ); | 65 wsMoveWindow( &appMPlayer.barWindow,0,x,mplPBLength ); |
58 break; | 66 break; |
59 case 2: // fade out | 67 case 2: // fade out |
60 mplPBLength+=10; | 68 mplPBLength+=10; |
61 if ( mplPBLength > appMPlayer.subWindow.Height ) | 69 if ( mplPBLength > appMPlayer.subWindow.Height ) |
62 { | 70 { |
64 mplPBFade=mplPBVisible=0; | 72 mplPBFade=mplPBVisible=0; |
65 vo_mouse_autohide=1; | 73 vo_mouse_autohide=1; |
66 wsVisibleWindow( &appMPlayer.barWindow,wsHideWindow ); | 74 wsVisibleWindow( &appMPlayer.barWindow,wsHideWindow ); |
67 return; | 75 return; |
68 } | 76 } |
69 wsMoveWindow( &appMPlayer.barWindow,0,appMPlayer.bar.x,mplPBLength ); | 77 wsMoveWindow( &appMPlayer.barWindow,0,x,mplPBLength ); |
70 break; | 78 break; |
71 } | 79 } |
72 | 80 |
73 // --- render | 81 // --- render |
74 if ( appMPlayer.barWindow.State == wsWindowExpose ) | 82 if ( appMPlayer.barWindow.State == wsWindowExpose ) |