[Mplayer-cvslog] CVS: main/Gui interface.c,1.78,1.79
Arpi of Ize
arpi at mplayerhq.hu
Fri Feb 7 00:12:54 CET 2003
Update of /cvsroot/mplayer/main/Gui
In directory mail:/var/tmp.root/cvs-serv18336
Modified Files:
interface.c
Log Message:
Embed gui into the playback window, if winid>0
also don't center window and align gui at the bottom.
(see http://mplayerplug-in.sf.net for screenshot and speial skin)
patch by Fabian Franz <FabianFranz at gmx.de>
Index: interface.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/interface.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -r1.78 -r1.79
--- interface.c 5 Feb 2003 23:00:44 -0000 1.78
+++ interface.c 6 Feb 2003 23:12:37 -0000 1.79
@@ -193,6 +193,14 @@
fprintf( stderr,MSGTR_NEMDB );
exit( 0 );
}
+
+ if (WinID>0)
+ {
+ appMPlayer.subWindow.Parent=WinID;
+ appMPlayer.mainWindow.Parent=WinID;
+ appMPlayer.sub.x=0;
+ appMPlayer.sub.y=0;
+ }
wsCreateWindow( &appMPlayer.subWindow,
appMPlayer.sub.x,appMPlayer.sub.y,appMPlayer.sub.width,appMPlayer.sub.height,
@@ -509,6 +517,8 @@
}
guiIntfStruct.MovieWidth=vo_dwidth;
guiIntfStruct.MovieHeight=vo_dheight;
+ if (WinID>0)
+ wsMoveWindow( &appMPlayer.mainWindow,0,0, vo_dheight);
}
break;
#ifdef USE_DVDREAD
More information about the MPlayer-cvslog
mailing list