annotate Gui/mplayer/sw.h @ 2977:28bcf0ca1448

ao_mpegpes isn't really optional
author pl
date Sun, 18 Nov 2001 18:58:03 +0000
parents d47cbcdce1a8
children c4b6dc8bb554
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
1
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
2 // sub window
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
3
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
4 int mplSubRender = 1;
1852
58dd326fcc4a fix xshape, mixer, fullscreen, etc
pontscho
parents: 1841
diff changeset
5 int SubVisible = 0;
1812
d2d6a26ddb02 majd fix play&stop&pause&redraw
pontscho
parents: 1798
diff changeset
6
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
7 void mplSubDraw( wsParamDisplay )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
8 {
2045
deb4aff05c44 fix other bugs
pontscho
parents: 2030
diff changeset
9 if ( appMPlayer.subWindow.State == wsWindowFocusIn ) SubVisible++;
2851
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
10
1852
58dd326fcc4a fix xshape, mixer, fullscreen, etc
pontscho
parents: 1841
diff changeset
11 if ( !appMPlayer.subWindow.Mapped ||
58dd326fcc4a fix xshape, mixer, fullscreen, etc
pontscho
parents: 1841
diff changeset
12 appMPlayer.subWindow.Visible == wsWindowNotVisible ) return;
1823
a6c67352ccac fix some bug.
pontscho
parents: 1815
diff changeset
13
1852
58dd326fcc4a fix xshape, mixer, fullscreen, etc
pontscho
parents: 1841
diff changeset
14 if ( mplShMem->Playing )
2851
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
15 {
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
16 vo_expose=1;
1812
d2d6a26ddb02 majd fix play&stop&pause&redraw
pontscho
parents: 1798
diff changeset
17 mplSubRender=0;
1798
ddeafb1dbc73 fix sub redraw
pontscho
parents: 1781
diff changeset
18 }
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
19
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
20 if ( mplSubRender )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
21 {
2029
41ed89701ece fix fucking icewm fullscreen bug.
pontscho
parents: 2025
diff changeset
22 if ( appMPlayer.sub.Bitmap.Image ) wsPutImage( &appMPlayer.subWindow );
2025
0653e90b3118 some bug fix, and sub window render speed up.. 10l kola ? :)
pontscho
parents: 1858
diff changeset
23 // XFlush( wsDisplay );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
24 }
2851
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
25 appMPlayer.subWindow.State=0;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
26 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
27
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
28 void mplSubMouseHandle( int Button,int X,int Y,int RX,int RY )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
29 {
1812
d2d6a26ddb02 majd fix play&stop&pause&redraw
pontscho
parents: 1798
diff changeset
30 static int mplSubMoved = 0;
2851
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
31 static int msButton = 0;
1812
d2d6a26ddb02 majd fix play&stop&pause&redraw
pontscho
parents: 1798
diff changeset
32
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
33 mplMouseTimer=mplMouseTimerConst;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
34 wsVisibleMouse( &appMPlayer.subWindow,wsShowMouseCursor );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
35
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
36 switch( Button )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
37 {
2902
d47cbcdce1a8 rewrite some header meg jol csinaltam menu -t koepso gombra gonosz mod ( bocs, tom, nem angol).
pontscho
parents: 2854
diff changeset
38 case wsPMMouseButton:
d47cbcdce1a8 rewrite some header meg jol csinaltam menu -t koepso gombra gonosz mod ( bocs, tom, nem angol).
pontscho
parents: 2854
diff changeset
39 gtkSendMessage( evShowPopUpMenu );
d47cbcdce1a8 rewrite some header meg jol csinaltam menu -t koepso gombra gonosz mod ( bocs, tom, nem angol).
pontscho
parents: 2854
diff changeset
40 break;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
41 case wsPRMouseButton:
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
42 mplShowMenu( RX,RY );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
43 msButton=wsPRMouseButton;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
44 break;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
45 case wsRRMouseButton:
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
46 mplHideMenu( RX,RY );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
47 msButton=0;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
48 break;
2851
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
49 // ---
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
50 case wsPLMouseButton:
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
51 sx=X; sy=Y;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
52 msButton=wsPLMouseButton;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
53 mplSubMoved=0;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
54 break;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
55 case wsMoveMouse:
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
56 switch ( msButton )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
57 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
58 case wsPLMouseButton:
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
59 mplSubMoved=1;
2854
fd44ecf77f8d move bug meg fileload bug fixed asszem.
pontscho
parents: 2851
diff changeset
60 if ( !appMPlayer.subWindow.isFullScreen ) wsMoveWindow( &appMPlayer.subWindow,False,RX - sx,RY - sy );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
61 break;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
62 case wsPRMouseButton:
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
63 mplMenuMouseHandle( X,Y,RX,RY );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
64 mplMouseTimer=mplMouseTimerConst;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
65 break;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
66 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
67 break;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
68 case wsRLMouseButton:
2030
68dbb349566e mwm fullscreen bug fixed (?)
pontscho
parents: 2029
diff changeset
69 // if ( ( !mplSubMoved )&&( ( SubVisible++%2 ) ) ) wsMoveTopWindow( &appMPlayer.mainWindow );
68dbb349566e mwm fullscreen bug fixed (?)
pontscho
parents: 2029
diff changeset
70 if ( !mplSubMoved )
2851
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
71 {
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
72 if( SubVisible++%2 )
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
73 {
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
74 wsMoveTopWindow( &appMPlayer.mainWindow );
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
75 fprintf( stderr,"[sw] MAIN TOP\n" );
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
76 }
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
77 else
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
78 {
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
79 wsMoveTopWindow( &appMPlayer.subWindow );
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
80 fprintf( stderr,"[sw] SUB TOP\n" );
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
81 }
b64fa5d25142 add roleld mouse support and some small bugfix. neked jol a testedbe.
pontscho
parents: 2045
diff changeset
82 }
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
83 msButton=0;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
84 mplSubMoved=0;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
85 break;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
86 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
87 }