[Mplayer-cvslog] CVS: main/libvo vo_quartz.c,1.36,1.37

Nicolas Plourde CVS syncmail at mplayerhq.hu
Fri Oct 29 04:16:19 CEST 2004


CVS change done by Nicolas Plourde CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv8359/libvo

Modified Files:
	vo_quartz.c 
Log Message:
resize preset now respect movie aspect

Index: vo_quartz.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_quartz.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- vo_quartz.c	29 Oct 2004 01:24:14 -0000	1.36
+++ vo_quartz.c	29 Oct 2004 02:16:16 -0000	1.37
@@ -349,7 +349,7 @@
 						vo_fs = (!(vo_fs)); window_fullscreen();
 					}
 						
-					SizeWindow(theWindow, (d_width/2), (d_height/2)+border, 1);
+					SizeWindow(theWindow, (d_width/2), ((d_width/movie_aspect)/2)+border, 1);
 					RepositionWindow(theWindow, NULL, kWindowCascadeOnMainScreen);
 					window_resized();
 				break;
@@ -360,7 +360,7 @@
 						vo_fs = (!(vo_fs)); window_fullscreen();
 					}
 						
-					SizeWindow(theWindow, d_width, d_height+border, 1);
+					SizeWindow(theWindow, d_width, (d_width/movie_aspect)+border, 1);
 					RepositionWindow(theWindow, NULL, kWindowCascadeOnMainScreen);
 					window_resized();
 				break;
@@ -371,7 +371,7 @@
 						vo_fs = (!(vo_fs)); window_fullscreen();
 					}
 						
-					SizeWindow(theWindow, (d_width*2), (d_height*2)+border, 1);
+					SizeWindow(theWindow, (d_width*2), ((d_width/movie_aspect)*2)+border, 1);
 					RepositionWindow(theWindow, NULL, kWindowCascadeOnMainScreen);
 					window_resized();
 				break;




More information about the MPlayer-cvslog mailing list