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@gmx.de>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9307 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2003-02-06 23:12:37 +00:00
parent 1fc53654e3
commit ae34b980d4
1 changed files with 10 additions and 0 deletions

View File

@ -193,6 +193,14 @@ void guiInit( void )
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 @@ int guiGetEvent( int type,char * arg )
}
guiIntfStruct.MovieWidth=vo_dwidth;
guiIntfStruct.MovieHeight=vo_dheight;
if (WinID>0)
wsMoveWindow( &appMPlayer.mainWindow,0,0, vo_dheight);
}
break;
#ifdef USE_DVDREAD