[Mplayer-cvslog] CVS: main/libvo vo_quartz.c,1.32,1.33

Nicolas Plourde CVS syncmail at mplayerhq.hu
Thu Oct 28 23:48:44 CEST 2004


CVS change done by Nicolas Plourde CVS

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

Modified Files:
	vo_quartz.c 
Log Message:
autodetect proper monitor aspect

Index: vo_quartz.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_quartz.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- vo_quartz.c	28 Oct 2004 14:52:47 -0000	1.32
+++ vo_quartz.c	28 Oct 2004 21:48:41 -0000	1.33
@@ -71,6 +71,7 @@
 extern int vo_ontop;
 extern int vo_fs; // user want fullscreen
 static int vo_quartz_fs; // we are in fullscreen
+extern float monitor_aspect;
 
 static int winLevel = 1;
 int levelList[] =
@@ -502,6 +503,8 @@
 	device_width = deviceRect.right-deviceRect.left;
 	device_height = deviceRect.bottom-deviceRect.top;
 	
+	monitor_aspect = (float)device_width/(float)device_height;
+
 	//misc mplayer setup/////////////////////////////////////////////////////
 	SetRect(&imgRect, 0, 0, width, height);
 	switch (image_format) 




More information about the MPlayer-cvslog mailing list