Mercurial > mplayer.hg
changeset 9306:b78cd2e33d2c
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>
author | arpi |
---|---|
date | Thu, 06 Feb 2003 23:12:37 +0000 |
parents | 91ed6378b9a6 |
children | ec18ad315bbe |
files | Gui/interface.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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