Mercurial > mplayer.hg
diff Gui/mplayer/play.c @ 1952:b55163894e30
compile bug fixed.
author | pontscho |
---|---|
date | Tue, 25 Sep 2001 14:00:19 +0000 |
parents | 83291fafe66c |
children | 041483da104e |
line wrap: on
line diff
--- a/Gui/mplayer/play.c Tue Sep 25 07:20:42 2001 +0000 +++ b/Gui/mplayer/play.c Tue Sep 25 14:00:19 2001 +0000 @@ -46,11 +46,13 @@ void mplStop() { - if ( !mplShMem->Playing ) return; mplShMem->Playing=0; mplShMem->TimeSec=0; mplShMem->Position=0; mplShMem->AudioType=0; + mplSubRender=1; + wsPostRedisplay( &appMPlayer.subWindow ); + if ( !mplShMem->Playing ) return; if ( !appMPlayer.subWindow.isFullScreen ) { wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y ); @@ -197,3 +199,9 @@ wsHandleEvents();mplTimerHandler(0); // handle GUI timer events if ( mplShMem->SkinChange ) { ChangeSkin(); mplShMem->SkinChange=0; } } + +void mplResizeToMovieSize( unsigned int width,unsigned int height ) +{ + if ( !appMPlayer.subWindow.isFullScreen ) + wsResizeWindow( &appMPlayer.subWindow,width,height ); +}