diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-07 17:50:25 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-07 17:50:25 +0000 |
commit | df141d9d82ee5fa2eba136703c1faab70d4d49f6 (patch) | |
tree | 3548395549ccfd057a6845f9713f78867e727b93 /Gui/mplayer/play.c | |
parent | 83c66ac7053e671e8eb4aecba8d983d6c6b6d1b4 (diff) | |
download | mpv-df141d9d82ee5fa2eba136703c1faab70d4d49f6.tar.bz2 mpv-df141d9d82ee5fa2eba136703c1faab70d4d49f6.tar.xz |
rewrite fullscreen support in some libvo driver
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4982 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/play.c')
-rw-r--r-- | Gui/mplayer/play.c | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/Gui/mplayer/play.c b/Gui/mplayer/play.c index 2cd24611f5..0ed96db793 100644 --- a/Gui/mplayer/play.c +++ b/Gui/mplayer/play.c @@ -30,26 +30,33 @@ void mplFullScreen( void ) { static int sx,sy; - wsVisibleWindow( &appMPlayer.subWindow,wsHideWindow ); - if ( appMPlayer.subWindow.isFullScreen ) + if ( guiIntfStruct.Playing ) { - wsResizeWindow( &appMPlayer.subWindow,sx,sy ); - wsMoveWindow( &appMPlayer.subWindow,True,appMPlayer.sub.x,appMPlayer.sub.y ); - wsWindowDecoration( &appMPlayer.subWindow,appMPlayer.subWindow.Decorations ); - appMPlayer.subWindow.isFullScreen=0; - } - else - { - sx=appMPlayer.subWindow.Width; sy=appMPlayer.subWindow.Height; - wsResizeWindow( &appMPlayer.subWindow,wsMaxX,wsMaxY ); - wsMoveWindow( &appMPlayer.subWindow,True,0,0 ); - wsWindowDecoration( &appMPlayer.subWindow,0 ); - appMPlayer.subWindow.isFullScreen=1; - } + wsVisibleWindow( &appMPlayer.subWindow,wsHideWindow ); + if ( appMPlayer.subWindow.isFullScreen ) + { + wsResizeWindow( &appMPlayer.subWindow,sx,sy ); + wsMoveWindow( &appMPlayer.subWindow,True,appMPlayer.sub.x,appMPlayer.sub.y ); + wsWindowDecoration( &appMPlayer.subWindow,appMPlayer.subWindow.Decorations ); + appMPlayer.subWindow.isFullScreen=0; + vo_fs=0; + } + else + { + sx=appMPlayer.subWindow.Width; sy=appMPlayer.subWindow.Height; + wsResizeWindow( &appMPlayer.subWindow,wsMaxX,wsMaxY ); + wsMoveWindow( &appMPlayer.subWindow,True,0,0 ); + wsWindowDecoration( &appMPlayer.subWindow,0 ); + appMPlayer.subWindow.isFullScreen=1; + vo_fs=1; + } + wsVisibleWindow( &appMPlayer.subWindow,wsShowWindow ); + } else { vo_x11_fullscreen(); appMPlayer.subWindow.isFullScreen=vo_fs; } + + fullscreen=appMPlayer.subWindow.isFullScreen; if ( guiIntfStruct.Playing ) wsSetBackgroundRGB( &appMPlayer.subWindow,0,0,0 ); else wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB ); - wsVisibleWindow( &appMPlayer.subWindow,wsShowWindow ); - mplResize( 0,0,appMPlayer.subWindow.Width,appMPlayer.subWindow.Height ); +// mplResize( 0,0,appMPlayer.subWindow.Width,appMPlayer.subWindow.Height ); } extern int mplSubRender; |