[Mplayer-cvslog] CVS: main/Gui/mplayer mw.h,1.82,1.83

Zoltan Ponekker pontscho at mplayerhq.hu
Sat Sep 28 23:16:14 CEST 2002


Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mail:/var/tmp.root/cvs-serv8638/Gui/mplayer

Modified Files:
	mw.h 
Log Message:
add aspect changing support

Index: mw.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/mw.h,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -r1.82 -r1.83
--- mw.h	30 Aug 2002 19:11:02 -0000	1.82
+++ mw.h	28 Sep 2002 21:16:11 -0000	1.83
@@ -447,6 +447,19 @@
         mplFullScreen();
         break;
 
+   case evSetAspect:
+	switch ( (int)param )
+	 {
+	  case 2:  movie_aspect=16.0f / 9.0f; break;
+	  case 3:  movie_aspect=4.0f / 3.0f;  break;
+	  case 4:  movie_aspect=2.35;         break;
+	  case 1:
+	  default: movie_aspect=-1;
+	 }
+	guiIntfStruct.FilenameChanged=1;
+	wsClearWindow( appMPlayer.subWindow );
+	break;
+
 // --- timer events
    case evRedraw:
         mplMainRender=1;




More information about the MPlayer-cvslog mailing list