Mercurial > mplayer.hg
comparison Gui/mplayer/play.c @ 1952:b55163894e30
compile bug fixed.
author | pontscho |
---|---|
date | Tue, 25 Sep 2001 14:00:19 +0000 |
parents | 83291fafe66c |
children | 041483da104e |
comparison
equal
deleted
inserted
replaced
1951:b2b85982fc0e | 1952:b55163894e30 |
---|---|
44 | 44 |
45 extern int mplSubRender; | 45 extern int mplSubRender; |
46 | 46 |
47 void mplStop() | 47 void mplStop() |
48 { | 48 { |
49 if ( !mplShMem->Playing ) return; | |
50 mplShMem->Playing=0; | 49 mplShMem->Playing=0; |
51 mplShMem->TimeSec=0; | 50 mplShMem->TimeSec=0; |
52 mplShMem->Position=0; | 51 mplShMem->Position=0; |
53 mplShMem->AudioType=0; | 52 mplShMem->AudioType=0; |
53 mplSubRender=1; | |
54 wsPostRedisplay( &appMPlayer.subWindow ); | |
55 if ( !mplShMem->Playing ) return; | |
54 if ( !appMPlayer.subWindow.isFullScreen ) | 56 if ( !appMPlayer.subWindow.isFullScreen ) |
55 { | 57 { |
56 wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y ); | 58 wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y ); |
57 wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height ); | 59 wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height ); |
58 } | 60 } |
195 void EventHandling( void ) | 197 void EventHandling( void ) |
196 { | 198 { |
197 wsHandleEvents();mplTimerHandler(0); // handle GUI timer events | 199 wsHandleEvents();mplTimerHandler(0); // handle GUI timer events |
198 if ( mplShMem->SkinChange ) { ChangeSkin(); mplShMem->SkinChange=0; } | 200 if ( mplShMem->SkinChange ) { ChangeSkin(); mplShMem->SkinChange=0; } |
199 } | 201 } |
202 | |
203 void mplResizeToMovieSize( unsigned int width,unsigned int height ) | |
204 { | |
205 if ( !appMPlayer.subWindow.isFullScreen ) | |
206 wsResizeWindow( &appMPlayer.subWindow,width,height ); | |
207 } |