[Mplayer-cvslog] CVS: main mplayer.c,1.251,1.252

Zoltan Ponekker pontscho at mplayer.dev.hu
Wed Aug 29 19:37:05 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv13656

Modified Files:
	mplayer.c 
Log Message:
resize

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.251
retrieving revision 1.252
diff -u -r1.251 -r1.252
--- mplayer.c	29 Aug 2001 15:08:43 -0000	1.251
+++ mplayer.c	29 Aug 2001 17:37:03 -0000	1.252
@@ -573,7 +573,11 @@
 play_next_file:
     filename=(num_filenames>0)?filenames[curr_filename]:NULL;
 #ifdef HAVE_NEW_GUI
-    strcpy( mplShMem->Filename,filename );
+    if ( use_gui ) 
+     {
+      strcpy( mplShMem->Filename,filename );
+      mplShMem->Playing=1;
+     } 
 #endif    
     if(filename) mp_msg(MSGT_CPLAYER,MSGL_INFO,"Playing %s\n", filename);
 
@@ -952,6 +956,16 @@
     if(strlen(info->comment) > 0)
         mp_msg(MSGT_CPLAYER,MSGL_V,"VO: Comment: %s\n", info->comment);
    }
+#endif
+
+#ifdef HAVE_NEW_GUI
+   if ( use_gui )
+    {
+     if ( !appMPlayer.subWindow.isFullScreen ) 
+       wsResizeWindow( &appMPlayer.subWindow,sh_video->disp_w,sh_video->disp_h );
+     screen_size_x=appMPlayer.subWindow.Width;
+     screen_size_y=appMPlayer.subWindow.Height;
+    }
 #endif
 
    mp_msg(MSGT_CPLAYER,MSGL_V,"video_out->init(%dx%d->%dx%d,flags=%d,'%s',0x%X)\n",




More information about the MPlayer-cvslog mailing list