summaryrefslogtreecommitdiffstats
path: root/Gui
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-07 18:06:16 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-02-07 18:06:16 +0000
commitfc52bafec0ee3772cafc9e19815476e92546fdc7 (patch)
tree9983b7b6d6aca12d84d5bf53046d74aa7d1185ef /Gui
parent205fd981f3b8e583f430f771333311f9cad79014 (diff)
downloadmpv-fc52bafec0ee3772cafc9e19815476e92546fdc7.tar.bz2
mpv-fc52bafec0ee3772cafc9e19815476e92546fdc7.tar.xz
this patch adds the option -guiwid to gmplayer. I think its a more clean
approach than using just wid. Fabian Franz <FabianFranz@gmx.de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9315 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui')
-rw-r--r--Gui/interface.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Gui/interface.c b/Gui/interface.c
index c666c28cc5..fd96aeea86 100644
--- a/Gui/interface.c
+++ b/Gui/interface.c
@@ -40,6 +40,7 @@
#include "../libmpcodecs/dec_video.h"
guiInterface_t guiIntfStruct;
+int guiWinID=-1;
char * gstrcat( char ** dest,char * src )
{
@@ -197,10 +198,11 @@ void guiInit( void )
if (WinID>0)
{
appMPlayer.subWindow.Parent=WinID;
- appMPlayer.mainWindow.Parent=WinID;
appMPlayer.sub.x=0;
appMPlayer.sub.y=0;
}
+ if (guiWinID>=0)
+ appMPlayer.mainWindow.Parent=guiWinID;
wsCreateWindow( &appMPlayer.subWindow,
appMPlayer.sub.x,appMPlayer.sub.y,appMPlayer.sub.width,appMPlayer.sub.height,
@@ -517,7 +519,7 @@ int guiGetEvent( int type,char * arg )
}
guiIntfStruct.MovieWidth=vo_dwidth;
guiIntfStruct.MovieHeight=vo_dheight;
- if (WinID>0)
+ if (guiWinID>=0)
wsMoveWindow( &appMPlayer.mainWindow,0,0, vo_dheight);
}
break;