annotate Gui/mplayer/play.c @ 1884:d21f8afc7680

add to multi lang support
author pontscho
date Wed, 12 Sep 2001 15:08:53 +0000
parents 32b1bb50a0e8
children 1f1e98fbf3a7
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 #include <stdlib.h>
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
3 #include <stdio.h>
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
4
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
5 #include <unistd.h>
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
6 #include <signal.h>
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
7
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
8 int mplParent = 1;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
9
1765
29913c011d50 normal size
pontscho
parents: 1757
diff changeset
10 int moviex,moviey,moviewidth,movieheight;
1723
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1693
diff changeset
11
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
12 #include "../app.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
13
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
14 #include "../wm/ws.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
15 #include "../wm/wskeys.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
16 #include "../wm/widget.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
17
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
18 #include "../../config.h"
1884
d21f8afc7680 add to multi lang support
pontscho
parents: 1866
diff changeset
19 #include "../../help_mp.h"
1723
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1693
diff changeset
20 #include "../../libvo/x11_common.h"
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
21
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
22 #include "widgets.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
23 #include "./mplayer.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
24 #include "psignal.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
25 #include "play.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
26
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
27 #include "../skin/skin.h"
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
28 #include "../error.h"
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
29
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
30 mplCommStruct * mplShMem;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
31 char * Filename = NULL;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
32
1723
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1693
diff changeset
33 extern float rel_seek_secs;
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1693
diff changeset
34 extern int abs_seek_pos;
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1693
diff changeset
35
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
36 void mplFullScreen( void )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
37 {
1765
29913c011d50 normal size
pontscho
parents: 1757
diff changeset
38 // if ( appMPlayer.subWindow.isFullScreen )
29913c011d50 normal size
pontscho
parents: 1757
diff changeset
39 // {
29913c011d50 normal size
pontscho
parents: 1757
diff changeset
40 // }
29913c011d50 normal size
pontscho
parents: 1757
diff changeset
41 wsFullScreen( &appMPlayer.subWindow );
1756
9621e4d14c6d fullscreen fixed
pontscho
parents: 1747
diff changeset
42 mplResize( 0,0,appMPlayer.subWindow.Width,appMPlayer.subWindow.Height );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
43 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
44
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
45 extern int mplSubRender;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
46
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
47 void mplStop()
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
48 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
49 if ( !mplShMem->Playing ) return;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
50 mplShMem->Playing=0;
1812
d2d6a26ddb02 majd fix play&stop&pause&redraw
pontscho
parents: 1804
diff changeset
51 mplShMem->TimeSec=0;
1825
1791c7930776 fix sizeof :))))
pontscho
parents: 1815
diff changeset
52 mplShMem->Position=0;
1796
13ea5f992185 fix stop subimage
pontscho
parents: 1791
diff changeset
53 if ( !appMPlayer.subWindow.isFullScreen )
13ea5f992185 fix stop subimage
pontscho
parents: 1791
diff changeset
54 {
13ea5f992185 fix stop subimage
pontscho
parents: 1791
diff changeset
55 wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y );
13ea5f992185 fix stop subimage
pontscho
parents: 1791
diff changeset
56 wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height );
13ea5f992185 fix stop subimage
pontscho
parents: 1791
diff changeset
57 }
1797
d1aabeb7274f fix after stop redraw. vagy nem.
pontscho
parents: 1796
diff changeset
58 mplSubRender=1;
d1aabeb7274f fix after stop redraw. vagy nem.
pontscho
parents: 1796
diff changeset
59 wsPostRedisplay( &appMPlayer.subWindow );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
60 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
61
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
62 void mplPlay( void )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
63 {
1812
d2d6a26ddb02 majd fix play&stop&pause&redraw
pontscho
parents: 1804
diff changeset
64 if ( ( mplShMem->Filename[0] == 0 )||
1804
76b4f7bcd087 play->pause fix ?
pontscho
parents: 1802
diff changeset
65 ( mplShMem->Playing == 1 ) ) return;
76b4f7bcd087 play->pause fix ?
pontscho
parents: 1802
diff changeset
66 if ( mplShMem->Playing == 2 ) { mplPause(); return; }
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
67 mplShMem->Playing=1;
1791
2e86c5c8071e fix subvindov
pontscho
parents: 1784
diff changeset
68 mplSubRender=0;
1858
88a88d0a3f94 fix skin changing, xv fullscreen redraw bug, etc.
pontscho
parents: 1852
diff changeset
69 wsSetBackgroundRGB( &appMPlayer.subWindow,0,0,0 );
88a88d0a3f94 fix skin changing, xv fullscreen redraw bug, etc.
pontscho
parents: 1852
diff changeset
70 wsClearWindow( appMPlayer.subWindow );
1852
58dd326fcc4a fix xshape, mixer, fullscreen, etc
pontscho
parents: 1850
diff changeset
71 wsPostRedisplay( &appMPlayer.subWindow );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
72 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
73
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
74 void mplPause( void )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
75 {
1804
76b4f7bcd087 play->pause fix ?
pontscho
parents: 1802
diff changeset
76 switch( mplShMem->Playing )
76b4f7bcd087 play->pause fix ?
pontscho
parents: 1802
diff changeset
77 {
76b4f7bcd087 play->pause fix ?
pontscho
parents: 1802
diff changeset
78 case 1: // playing
76b4f7bcd087 play->pause fix ?
pontscho
parents: 1802
diff changeset
79 mplShMem->Playing=2;
76b4f7bcd087 play->pause fix ?
pontscho
parents: 1802
diff changeset
80 btnModify( evPlaySwitchToPause,btnReleased );
76b4f7bcd087 play->pause fix ?
pontscho
parents: 1802
diff changeset
81 btnModify( evPauseSwitchToPlay,btnDisabled );
76b4f7bcd087 play->pause fix ?
pontscho
parents: 1802
diff changeset
82 break;
76b4f7bcd087 play->pause fix ?
pontscho
parents: 1802
diff changeset
83 case 2: // paused
76b4f7bcd087 play->pause fix ?
pontscho
parents: 1802
diff changeset
84 mplShMem->Playing=1;
76b4f7bcd087 play->pause fix ?
pontscho
parents: 1802
diff changeset
85 btnModify( evPlaySwitchToPause,btnDisabled );
76b4f7bcd087 play->pause fix ?
pontscho
parents: 1802
diff changeset
86 btnModify( evPauseSwitchToPlay,btnReleased );
76b4f7bcd087 play->pause fix ?
pontscho
parents: 1802
diff changeset
87 break;
76b4f7bcd087 play->pause fix ?
pontscho
parents: 1802
diff changeset
88 }
1815
eff8f3c200fa fix resize
pontscho
parents: 1812
diff changeset
89 mplSubRender=0;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
90 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
91
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
92 void mplResize( unsigned int X,unsigned int Y,unsigned int width,unsigned int height )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
93 {
1852
58dd326fcc4a fix xshape, mixer, fullscreen, etc
pontscho
parents: 1850
diff changeset
94 // printf( "----resize---> %dx%d --- \n",width,height );
1770
7e3136adcfb1 fix play->pause bug
pontscho
parents: 1765
diff changeset
95 vo_setwindowsize( width,height );
7e3136adcfb1 fix play->pause bug
pontscho
parents: 1765
diff changeset
96 vo_resize=1;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
97 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
98
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
99 void mplMPlayerInit( int argc,char* argv[], char *envp[] )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
100 {
1850
62b8e85865a2 Some changes to compile the GUI on solaris
jkeil
parents: 1829
diff changeset
101 struct sigaction sa;
62b8e85865a2 Some changes to compile the GUI on solaris
jkeil
parents: 1829
diff changeset
102
1825
1791c7930776 fix sizeof :))))
pontscho
parents: 1815
diff changeset
103 mplShMem=calloc( 1,sizeof( mplCommStruct ) );
1791c7930776 fix sizeof :))))
pontscho
parents: 1815
diff changeset
104 mplShMem->Balance=50.0f;
1850
62b8e85865a2 Some changes to compile the GUI on solaris
jkeil
parents: 1829
diff changeset
105 memset(&sa, 0, sizeof(sa));
62b8e85865a2 Some changes to compile the GUI on solaris
jkeil
parents: 1829
diff changeset
106 sa.sa_handler = mplMainSigHandler;
62b8e85865a2 Some changes to compile the GUI on solaris
jkeil
parents: 1829
diff changeset
107 sigaction( SIGTYPE,&sa,NULL );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
108 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
109
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
110 float mplGetPosition( void )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
111 { // return 0.0 ... 100.0
1729
d6c99f70449e fix hprogressbar
pontscho
parents: 1723
diff changeset
112 return mplShMem->Position;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
113 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
114
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
115 void mplRelSeek( float s )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
116 { // -+s
1723
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1693
diff changeset
117 rel_seek_secs=s; abs_seek_pos=0;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
118 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
119
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
120 void mplAbsSeek( float s )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
121 { // 0.0 ... 100.0
1723
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1693
diff changeset
122 rel_seek_secs=0.01*s; abs_seek_pos=3;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
123 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
124
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
125 listItems tmpList;
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
126
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
127 void ChangeSkin( void )
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
128 {
1866
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
129 if ( strcmp( skinName,gtkShMem->sb.name ) )
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
130 {
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
131 int ret;
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
132 #ifdef DEBUG
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
133 dbprintf( 1,"[psignal] skin: %s\n",gtkShMem->sb.name );
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
134 #endif
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
135
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
136 mainVisible=0;
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
137
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
138 appInitStruct( &tmpList );
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
139 skinAppMPlayer=&tmpList;
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
140 ret=skinRead( gtkShMem->sb.name );
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
141
1829
a4156c8cdd57 add font free func.
pontscho
parents: 1825
diff changeset
142 fntFreeFont();
a4156c8cdd57 add font free func.
pontscho
parents: 1825
diff changeset
143
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
144 appInitStruct( &tmpList );
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
145 skinAppMPlayer=&appMPlayer;
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
146 appInitStruct( &appMPlayer );
1866
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
147 if ( !ret ) strcpy( skinName,gtkShMem->sb.name );
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
148 skinRead( skinName );
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
149
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
150 if ( ret )
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
151 {
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
152 mainVisible=1;
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
153 return;
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
154 }
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
155
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
156 if ( appMPlayer.menuBase.Bitmap.Image )
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
157 {
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
158 if ( mplMenuDrawBuffer ) free( mplMenuDrawBuffer );
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
159 if ( ( mplMenuDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.menuBase.Bitmap.ImageSize ) ) == NULL )
1884
d21f8afc7680 add to multi lang support
pontscho
parents: 1866
diff changeset
160 { message( False,MSGTR_NEMDB ); return; }
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
161 wsResizeWindow( &appMPlayer.menuWindow,appMPlayer.menuBase.width,appMPlayer.menuBase.height );
1858
88a88d0a3f94 fix skin changing, xv fullscreen redraw bug, etc.
pontscho
parents: 1852
diff changeset
162 wsResizeImage( &appMPlayer.menuWindow,appMPlayer.menuBase.width,appMPlayer.menuBase.height );
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
163 }
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
164
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
165 mplSkinChanged=1;
1858
88a88d0a3f94 fix skin changing, xv fullscreen redraw bug, etc.
pontscho
parents: 1852
diff changeset
166 if ( appMPlayer.sub.Bitmap.Image ) wsResizeImage( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Width,appMPlayer.sub.Bitmap.Height );
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
167 if ( !mplShMem->Playing )
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
168 {
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
169 mplSkinChanged=0;
1858
88a88d0a3f94 fix skin changing, xv fullscreen redraw bug, etc.
pontscho
parents: 1852
diff changeset
170 if ( !appMPlayer.subWindow.isFullScreen )
88a88d0a3f94 fix skin changing, xv fullscreen redraw bug, etc.
pontscho
parents: 1852
diff changeset
171 {
88a88d0a3f94 fix skin changing, xv fullscreen redraw bug, etc.
pontscho
parents: 1852
diff changeset
172 wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height );
88a88d0a3f94 fix skin changing, xv fullscreen redraw bug, etc.
pontscho
parents: 1852
diff changeset
173 wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y );
88a88d0a3f94 fix skin changing, xv fullscreen redraw bug, etc.
pontscho
parents: 1852
diff changeset
174 }
88a88d0a3f94 fix skin changing, xv fullscreen redraw bug, etc.
pontscho
parents: 1852
diff changeset
175 wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB );
88a88d0a3f94 fix skin changing, xv fullscreen redraw bug, etc.
pontscho
parents: 1852
diff changeset
176 wsClearWindow( appMPlayer.subWindow );
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
177 mplSubRender=1; wsPostRedisplay( &appMPlayer.subWindow );
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
178 }
1866
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
179
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
180 if ( mplDrawBuffer ) free( mplDrawBuffer );
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
181 if ( ( mplDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.main.Bitmap.ImageSize ) ) == NULL )
1884
d21f8afc7680 add to multi lang support
pontscho
parents: 1866
diff changeset
182 { message( False,MSGTR_NEMDB ); return; }
1866
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
183 wsVisibleWindow( &appMPlayer.mainWindow,wsHideWindow );
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
184 wsResizeWindow( &appMPlayer.mainWindow,appMPlayer.main.width,appMPlayer.main.height );
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
185 wsMoveWindow( &appMPlayer.mainWindow,appMPlayer.main.x,appMPlayer.main.y );
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
186 wsResizeImage( &appMPlayer.mainWindow,appMPlayer.main.width,appMPlayer.main.height );
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
187 wsSetShape( &appMPlayer.mainWindow,appMPlayer.main.Mask.Image );
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
188 mainVisible=1; mplMainRender=1; wsPostRedisplay( &appMPlayer.mainWindow );
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
189 wsWindowDecoration( &appMPlayer.mainWindow,appMPlayer.mainDecoration );
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
190 wsVisibleWindow( &appMPlayer.mainWindow,wsShowWindow );
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
191
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
192 btnModify( evSetVolume,mplShMem->Volume );
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
193 btnModify( evSetBalance,mplShMem->Balance );
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
194 btnModify( evSetMoviePosition,mplShMem->Position );
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
195 }
1802
82e77faa7341 async reply fix ?
pontscho
parents: 1800
diff changeset
196 mplShMem->SkinChange=0;
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
197 }
1802
82e77faa7341 async reply fix ?
pontscho
parents: 1800
diff changeset
198
82e77faa7341 async reply fix ?
pontscho
parents: 1800
diff changeset
199 void EventHandling( void )
82e77faa7341 async reply fix ?
pontscho
parents: 1800
diff changeset
200 {
1861
17660d830bcb upsz ... timer disabling fix, sorry
pontscho
parents: 1860
diff changeset
201 wsHandleEvents();mplTimerHandler(0); // handle GUI timer events
1802
82e77faa7341 async reply fix ?
pontscho
parents: 1800
diff changeset
202 if ( mplShMem->SkinChange ) ChangeSkin();
82e77faa7341 async reply fix ?
pontscho
parents: 1800
diff changeset
203 }