[Mplayer-cvslog] CVS: main/Gui/mplayer mw.c,1.107,1.108 play.c,1.84,1.85
Zoltan Ponekker
pontscho at mplayerhq.hu
Sat Feb 1 17:42:33 CET 2003
- Previous message: [Mplayer-cvslog] CVS: main/Gui app.c,1.21,1.22 cfg.c,1.34,1.35 cfg.h,1.13,1.14 interface.c,1.76,1.77
- Next message: [Mplayer-cvslog] CVS: main/help help_mp-de.h,1.61,1.62
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mail:/var/tmp.root/cvs-serv8400/Gui/mplayer
Modified Files:
mw.c play.c
Log Message:
- rewrite Jan Spitalnik's patch
- fix some nice 10l
Index: mw.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/mw.c,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -r1.107 -r1.108
--- mw.c 19 Jan 2003 22:46:39 -0000 1.107
+++ mw.c 1 Feb 2003 16:42:00 -0000 1.108
@@ -277,6 +277,7 @@
}
break;
case evDoubleSize:
+ btnSet( evFullScreen,btnReleased );
if ( guiIntfStruct.Playing )
{
appMPlayer.subWindow.isFullScreen=True;
@@ -288,6 +289,7 @@
}
break;
case evNormalSize:
+ btnSet( evFullScreen,btnReleased );
if ( guiIntfStruct.Playing )
{
appMPlayer.subWindow.isFullScreen=True;
@@ -299,15 +301,10 @@
break;
} else if ( !appMPlayer.subWindow.isFullScreen ) break;
case evFullScreen:
- for ( j=0;j<appMPlayer.NumberOfItems + 1;j++ )
- {
- if ( appMPlayer.Items[j].msg == evFullScreen )
- {
- appMPlayer.Items[j].tmp=!appMPlayer.Items[j].tmp;
- appMPlayer.Items[j].pressed=appMPlayer.Items[j].tmp;
- }
- }
+ if ( !guiIntfStruct.Playing && !gtkShowVideoWindow ) break;
mplFullScreen();
+ if ( appMPlayer.subWindow.isFullScreen ) btnSet( evFullScreen,btnPressed );
+ else btnSet( evFullScreen,btnReleased );
break;
case evSetAspect:
Index: play.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/play.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -r1.84 -r1.85
--- play.c 1 Feb 2003 08:42:51 -0000 1.84
+++ play.c 1 Feb 2003 16:42:00 -0000 1.85
@@ -37,30 +37,7 @@
void mplFullScreen( void )
{
if ( guiIntfStruct.NoWindow && guiIntfStruct.Playing ) return;
-#if 0
- static int sx,sy;
-// if ( !guiIntfStruct.Playing )
- {
- 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;
- }
- 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=appMPlayer.subWindow.isFullScreen;
- wsVisibleWindow( &appMPlayer.subWindow,wsShowWindow );
- }// else { vo_x11_fullscreen(); appMPlayer.subWindow.isFullScreen=vo_fs; }
-#else
+
if ( ( guiIntfStruct.Playing )&&( appMPlayer.subWindow.isFullScreen ) )
{
appMPlayer.subWindow.OldWidth=guiIntfStruct.MovieWidth; appMPlayer.subWindow.OldHeight=guiIntfStruct.MovieHeight;
@@ -77,13 +54,11 @@
default: appMPlayer.subWindow.OldY=appMPlayer.sub.y; break;
}
}
- wsFullScreen( &appMPlayer.subWindow );
- vo_fs=appMPlayer.subWindow.isFullScreen;
+ if ( guiIntfStruct.Playing || gtkShowVideoWindow ) wsFullScreen( &appMPlayer.subWindow );
+ fullscreen=vo_fs=appMPlayer.subWindow.isFullScreen;
wsSetLayer( wsDisplay,appMPlayer.mainWindow.WindowID,appMPlayer.subWindow.isFullScreen );
wsSetLayer( wsDisplay,appMPlayer.menuWindow.WindowID,appMPlayer.subWindow.isFullScreen );
-#endif
- fullscreen=appMPlayer.subWindow.isFullScreen;
if ( guiIntfStruct.Playing ) wsSetBackgroundRGB( &appMPlayer.subWindow,0,0,0 );
else wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.sub.R,appMPlayer.sub.G,appMPlayer.sub.B );
}
- Previous message: [Mplayer-cvslog] CVS: main/Gui app.c,1.21,1.22 cfg.c,1.34,1.35 cfg.h,1.13,1.14 interface.c,1.76,1.77
- Next message: [Mplayer-cvslog] CVS: main/help help_mp-de.h,1.61,1.62
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list