summaryrefslogtreecommitdiffstats
path: root/Gui
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-06 23:12:37 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-06 23:12:37 +0000
commitae34b980d46737f802b76d536eb3b75f9d7ace8b (patch)
treef75bba35274ce3b3e556cdca413dd70e45e9a38b /Gui
parent1fc53654e37eb5cbe1404d11af040cb49048c76d (diff)
downloadmpv-ae34b980d46737f802b76d536eb3b75f9d7ace8b.tar.bz2
mpv-ae34b980d46737f802b76d536eb3b75f9d7ace8b.tar.xz
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
Diffstat (limited to 'Gui')
-rw-r--r--Gui/interface.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/Gui/interface.c b/Gui/interface.c
index 79bf6e1027..c666c28cc5 100644
--- a/Gui/interface.c
+++ b/Gui/interface.c
@@ -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