diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-01 12:28:39 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-01 12:28:39 +0000 |
commit | bc2edd4346ff2e21cf0e831590ea701d47484c19 (patch) | |
tree | fee727647c5cbbb2540109aeefad576e09885ef2 /Gui/mplayer/play.c | |
parent | a25b2273f86c5d7ff37f2d1c4187ad50a7cfa3c2 (diff) |
fix fucking icewm fullscreen bug.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2030 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/play.c')
-rw-r--r-- | Gui/mplayer/play.c | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/Gui/mplayer/play.c b/Gui/mplayer/play.c index 9f5d5b5d6c..22c6305005 100644 --- a/Gui/mplayer/play.c +++ b/Gui/mplayer/play.c @@ -35,10 +35,24 @@ extern int abs_seek_pos; 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 ); } |