summaryrefslogtreecommitdiffstats
path: root/Gui/mplayer/mw.c
diff options
context:
space:
mode:
Diffstat (limited to 'Gui/mplayer/mw.c')
-rw-r--r--Gui/mplayer/mw.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/Gui/mplayer/mw.c b/Gui/mplayer/mw.c
index 108570507e..a23a5c41ad 100644
--- a/Gui/mplayer/mw.c
+++ b/Gui/mplayer/mw.c
@@ -277,6 +277,7 @@ set_volume:
}
break;
case evDoubleSize:
+ btnSet( evFullScreen,btnReleased );
if ( guiIntfStruct.Playing )
{
appMPlayer.subWindow.isFullScreen=True;
@@ -288,6 +289,7 @@ set_volume:
}
break;
case evNormalSize:
+ btnSet( evFullScreen,btnReleased );
if ( guiIntfStruct.Playing )
{
appMPlayer.subWindow.isFullScreen=True;
@@ -299,15 +301,10 @@ set_volume:
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: