[Mplayer-cvslog] CVS: main/Gui interface.c,1.79,1.80

Arpi of Ize arpi at mplayerhq.hu
Fri Feb 7 19:06:27 CET 2003


Update of /cvsroot/mplayer/main/Gui
In directory mail:/var/tmp.root/cvs-serv493/Gui

Modified Files:
	interface.c 
Log Message:
this patch adds the option -guiwid to gmplayer. I think its a more clean
approach than using just wid.
Fabian Franz <FabianFranz at gmx.de>


Index: interface.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/interface.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- interface.c	6 Feb 2003 23:12:37 -0000	1.79
+++ interface.c	7 Feb 2003 18:06:16 -0000	1.80
@@ -40,6 +40,7 @@
 #include "../libmpcodecs/dec_video.h"
 
 guiInterface_t guiIntfStruct;
+int guiWinID=-1;
 
 char * gstrcat( char ** dest,char * src )
 {
@@ -197,10 +198,11 @@
   if (WinID>0)
   {
     appMPlayer.subWindow.Parent=WinID;
-    appMPlayer.mainWindow.Parent=WinID;
     appMPlayer.sub.x=0;
     appMPlayer.sub.y=0;
   }
+  if (guiWinID>=0)
+    appMPlayer.mainWindow.Parent=guiWinID;
  
  wsCreateWindow( &appMPlayer.subWindow,
   appMPlayer.sub.x,appMPlayer.sub.y,appMPlayer.sub.width,appMPlayer.sub.height,
@@ -517,7 +519,7 @@
 	   }
 	  guiIntfStruct.MovieWidth=vo_dwidth;
 	  guiIntfStruct.MovieHeight=vo_dheight;
-          if (WinID>0)
+          if (guiWinID>=0)
             wsMoveWindow( &appMPlayer.mainWindow,0,0, vo_dheight);
          }
 	break;



More information about the MPlayer-cvslog mailing list