[Mplayer-cvslog] CVS: main/libvo vo_xmga.c,1.35,1.36
Arpi of Ize
arpi at mplayer.dev.hu
Fri Dec 28 21:15:45 CET 2001
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv30033
Modified Files:
vo_xmga.c
Log Message:
-wid/-rootwin support
Index: vo_xmga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xmga.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- vo_xmga.c 17 Dec 2001 14:19:37 -0000 1.35
+++ vo_xmga.c 28 Dec 2001 20:15:43 -0000 1.36
@@ -280,6 +280,11 @@
xWAttribs.event_mask=StructureNotifyMask | ExposureMask | KeyPressMask;
xswamask=CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
+ if ( WinID>=0 ){
+ mWindow = WinID ? ((Window)WinID) : RootWindow(mDisplay,mScreen);
+ XUnmapWindow( mDisplay,mWindow );
+ XChangeWindowAttributes( mDisplay,mWindow,xswamask,&xWAttribs);
+ } else
mWindow=XCreateWindow( mDisplay,RootWindow( mDisplay,mScreen ),
wndX,wndY,
wndWidth,wndHeight,
More information about the MPlayer-cvslog
mailing list