Mercurial > mplayer.hg
diff Gui/mplayer/play.c @ 2029:41ed89701ece
fix fucking icewm fullscreen bug.
author | pontscho |
---|---|
date | Mon, 01 Oct 2001 12:28:39 +0000 |
parents | 0653e90b3118 |
children | deb4aff05c44 |
line wrap: on
line diff
--- a/Gui/mplayer/play.c Mon Oct 01 09:56:53 2001 +0000 +++ b/Gui/mplayer/play.c Mon Oct 01 12:28:39 2001 +0000 @@ -35,10 +35,24 @@ void mplFullScreen( void ) { -// if ( appMPlayer.subWindow.isFullScreen ) -// { -// } - wsFullScreen( &appMPlayer.subWindow ); + static int sx,sy; + wsVisibleWindow( &appMPlayer.subWindow,wsHideWindow ); + if ( appMPlayer.subWindow.isFullScreen ) + { + wsResizeWindow( &appMPlayer.subWindow,sx,sy ); + wsMoveWindow( &appMPlayer.subWindow,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,0,0 ); + wsWindowDecoration( &appMPlayer.subWindow,0 ); + appMPlayer.subWindow.isFullScreen=1; + } + wsVisibleWindow( &appMPlayer.subWindow,wsShowWindow ); mplResize( 0,0,appMPlayer.subWindow.Width,appMPlayer.subWindow.Height ); }