[MPlayer-cvslog] CVS: main/Gui/mplayer mw.c,1.114,1.115

Diego Biurrun CVS syncmail at mplayerhq.hu
Tue Jan 25 13:44:40 CET 2005


CVS change done by Diego Biurrun CVS

Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mail:/var2/tmp/cvs-serv2433/Gui/mplayer

Modified Files:
	mw.c 
Log Message:
Add half size entry to the GMPlayer menu.
patch by Pierre Marc Dumuid <pierre dot dumuid at adelaide dot edu dot au>
approved by Pontscho


Index: mw.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/mw.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -r1.114 -r1.115
--- mw.c	15 Dec 2004 01:22:24 -0000	1.114
+++ mw.c	25 Jan 2005 12:44:37 -0000	1.115
@@ -281,6 +281,20 @@
           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 )




More information about the MPlayer-cvslog mailing list