comparison 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
comparison
equal deleted inserted replaced
2028:64a53c27b944 2029:41ed89701ece
33 extern float rel_seek_secs; 33 extern float rel_seek_secs;
34 extern int abs_seek_pos; 34 extern int abs_seek_pos;
35 35
36 void mplFullScreen( void ) 36 void mplFullScreen( void )
37 { 37 {
38 // if ( appMPlayer.subWindow.isFullScreen ) 38 static int sx,sy;
39 // { 39 wsVisibleWindow( &appMPlayer.subWindow,wsHideWindow );
40 // } 40 if ( appMPlayer.subWindow.isFullScreen )
41 wsFullScreen( &appMPlayer.subWindow ); 41 {
42 wsResizeWindow( &appMPlayer.subWindow,sx,sy );
43 wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y );
44 wsWindowDecoration( &appMPlayer.subWindow,appMPlayer.subWindow.Decorations );
45 appMPlayer.subWindow.isFullScreen=0;
46 }
47 else
48 {
49 sx=appMPlayer.subWindow.Width; sy=appMPlayer.subWindow.Height;
50 wsResizeWindow( &appMPlayer.subWindow,wsMaxX,wsMaxY );
51 wsMoveWindow( &appMPlayer.subWindow,0,0 );
52 wsWindowDecoration( &appMPlayer.subWindow,0 );
53 appMPlayer.subWindow.isFullScreen=1;
54 }
55 wsVisibleWindow( &appMPlayer.subWindow,wsShowWindow );
42 mplResize( 0,0,appMPlayer.subWindow.Width,appMPlayer.subWindow.Height ); 56 mplResize( 0,0,appMPlayer.subWindow.Width,appMPlayer.subWindow.Height );
43 } 57 }
44 58
45 extern int mplSubRender; 59 extern int mplSubRender;
46 60