Mercurial > mplayer.hg
comparison Gui/interface.c @ 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 | 64b8c5a07c2c |
children | f38fe55d0e05 |
comparison
equal
deleted
inserted
replaced
9305:91ed6378b9a6 | 9306:b78cd2e33d2c |
---|---|
190 // --- initialize windows | 190 // --- initialize windows |
191 if ( ( mplDrawBuffer = (unsigned char *)malloc( appMPlayer.main.Bitmap.ImageSize ) ) == NULL ) | 191 if ( ( mplDrawBuffer = (unsigned char *)malloc( appMPlayer.main.Bitmap.ImageSize ) ) == NULL ) |
192 { | 192 { |
193 fprintf( stderr,MSGTR_NEMDB ); | 193 fprintf( stderr,MSGTR_NEMDB ); |
194 exit( 0 ); | 194 exit( 0 ); |
195 } | |
196 | |
197 if (WinID>0) | |
198 { | |
199 appMPlayer.subWindow.Parent=WinID; | |
200 appMPlayer.mainWindow.Parent=WinID; | |
201 appMPlayer.sub.x=0; | |
202 appMPlayer.sub.y=0; | |
195 } | 203 } |
196 | 204 |
197 wsCreateWindow( &appMPlayer.subWindow, | 205 wsCreateWindow( &appMPlayer.subWindow, |
198 appMPlayer.sub.x,appMPlayer.sub.y,appMPlayer.sub.width,appMPlayer.sub.height, | 206 appMPlayer.sub.x,appMPlayer.sub.y,appMPlayer.sub.width,appMPlayer.sub.height, |
199 wsNoBorder,wsShowMouseCursor|wsHandleMouseButton|wsHandleMouseMove,wsShowFrame|wsHideWindow,"MPlayer - Video" ); | 207 wsNoBorder,wsShowMouseCursor|wsHandleMouseButton|wsHandleMouseMove,wsShowFrame|wsHideWindow,"MPlayer - Video" ); |
507 wsResizeWindow( &appMPlayer.subWindow,vo_dwidth,vo_dheight ); | 515 wsResizeWindow( &appMPlayer.subWindow,vo_dwidth,vo_dheight ); |
508 wsMoveWindow( &appMPlayer.subWindow,True,appMPlayer.sub.x,appMPlayer.sub.y ); | 516 wsMoveWindow( &appMPlayer.subWindow,True,appMPlayer.sub.x,appMPlayer.sub.y ); |
509 } | 517 } |
510 guiIntfStruct.MovieWidth=vo_dwidth; | 518 guiIntfStruct.MovieWidth=vo_dwidth; |
511 guiIntfStruct.MovieHeight=vo_dheight; | 519 guiIntfStruct.MovieHeight=vo_dheight; |
520 if (WinID>0) | |
521 wsMoveWindow( &appMPlayer.mainWindow,0,0, vo_dheight); | |
512 } | 522 } |
513 break; | 523 break; |
514 #ifdef USE_DVDREAD | 524 #ifdef USE_DVDREAD |
515 case guiSetDVD: | 525 case guiSetDVD: |
516 guiIntfStruct.DVD.titles=dvdp->vmg_file->tt_srpt->nr_of_srpts; | 526 guiIntfStruct.DVD.titles=dvdp->vmg_file->tt_srpt->nr_of_srpts; |