[Mplayer-cvslog] CVS: main/libvo vo_x11.c,1.43,1.44

Atmosfear atmos4 at mplayer.dev.hu
Sat Dec 22 10:20:12 CET 2001


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

Modified Files:
	vo_x11.c 
Log Message:
Plugger patch by Sam Lin

Index: vo_x11.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_x11.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- vo_x11.c	11 Dec 2001 15:34:21 -0000	1.43
+++ vo_x11.c	22 Dec 2001 09:20:09 -0000	1.44
@@ -71,6 +71,9 @@
 static int depth,bpp,mode;
 static XWindowAttributes attribs;
 
+/* output window id */
+int WinID=0;
+
 //static int vo_dwidth,vo_dheight;
 
 static int Flip_Flag;
@@ -281,7 +284,13 @@
      }
 #endif
  
-    mywindow=XCreateWindow( mDisplay,RootWindow( mDisplay,mScreen ),
+    if ( WinID ){
+      mywindow = (Window)WinID;
+      XUnmapWindow( mDisplay,mywindow );
+      XChangeWindowAttributes( mDisplay,mywindow,xswamask,&xswa );
+    }
+    else
+      mywindow=XCreateWindow( mDisplay,RootWindow( mDisplay,mScreen ),
                          hint.x,hint.y,
                          hint.width,hint.height,
                          xswa.border_pixel,depth,CopyFromParent,vinfo.visual,xswamask,&xswa );




More information about the MPlayer-cvslog mailing list