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.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/Gui/mplayer/mw.c b/Gui/mplayer/mw.c
index f7edb6b292..c48eb56613 100644
--- a/Gui/mplayer/mw.c
+++ b/Gui/mplayer/mw.c
@@ -281,6 +281,20 @@ set_volume:
case 1: wsIconify( appMPlayer.subWindow ); break;
}
break;
+ case evHalfSize:
+ btnSet( evFullScreen,btnReleased );
+ if ( guiIntfStruct.Playing )
+ {
+ if ( appMPlayer.subWindow.isFullScreen )
+ {
+ mplFullScreen();
+ }
+ wsResizeWindow( &appMPlayer.subWindow, guiIntfStruct.MovieWidth / 2, guiIntfStruct.MovieHeight / 2 );
+ wsMoveWindow( &appMPlayer.subWindow, 0,
+ ( wsMaxX - guiIntfStruct.MovieWidth/2 )/2 + wsOrgX,
+ ( wsMaxY - guiIntfStruct.MovieHeight/2 )/2 + wsOrgY );
+ }
+ break;
case evDoubleSize:
btnSet( evFullScreen,btnReleased );
if ( guiIntfStruct.Playing )