# HG changeset patch # User arpi # Date 1044573157 0 # Node ID b78cd2e33d2c9a57238588cc49cb7287e3d57772 # Parent 91ed6378b9a60dd26c6dacbf1838c256fb809af2 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 diff -r 91ed6378b9a6 -r b78cd2e33d2c Gui/interface.c --- a/Gui/interface.c Thu Feb 06 22:44:52 2003 +0000 +++ b/Gui/interface.c Thu Feb 06 23:12:37 2003 +0000 @@ -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