changeset 1796:13ea5f992185

fix stop subimage
author pontscho
date Fri, 31 Aug 2001 10:30:57 +0000
parents 4dde03edb55e
children d1aabeb7274f
files Gui/mplayer/play.c mplayer.c
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/mplayer/play.c	Fri Aug 31 10:08:03 2001 +0000
+++ b/Gui/mplayer/play.c	Fri Aug 31 10:30:57 2001 +0000
@@ -53,7 +53,11 @@
 printf("%%%%%% STOP  \n");
 // ---
  mplShMem->Playing=0;
- mplSubRender=1;
+ if ( !appMPlayer.subWindow.isFullScreen )
+  {
+   wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y );
+   wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height );
+  }
 }
 
 void mplPlay( void )
--- a/mplayer.c	Fri Aug 31 10:08:03 2001 +0000
+++ b/mplayer.c	Fri Aug 31 10:30:57 2001 +0000
@@ -1858,6 +1858,11 @@
   if(video_out) video_out->uninit();
 #endif
 
+#ifdef HAVE_NEW_GUI
+  mplSubRender=1;
+  wsPostRedisplay( &appMPlayer.subWindow );
+#endif
+
   current_module="uninit_ao";
   if(audio_out) audio_out->uninit();
 //  if(encode_name) avi_fixate();