Mercurial > mplayer.hg
diff Gui/interface.c @ 9314:f38fe55d0e05
this patch adds the option -guiwid to gmplayer. I think its a more clean
approach than using just wid.
Fabian Franz <FabianFranz@gmx.de>
author | arpi |
---|---|
date | Fri, 07 Feb 2003 18:06:16 +0000 |
parents | b78cd2e33d2c |
children | 20f0a254142d |
line wrap: on
line diff
--- a/Gui/interface.c Fri Feb 07 14:27:44 2003 +0000 +++ b/Gui/interface.c Fri Feb 07 18:06:16 2003 +0000 @@ -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 @@ 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 @@ } guiIntfStruct.MovieWidth=vo_dwidth; guiIntfStruct.MovieHeight=vo_dheight; - if (WinID>0) + if (guiWinID>=0) wsMoveWindow( &appMPlayer.mainWindow,0,0, vo_dheight); } break;