changeset 13791:4f08a94405ad

autodetect proper monitor aspect
author nplourde
date Thu, 28 Oct 2004 21:48:41 +0000
parents 92a9afe47452
children d603c33bb3d3
files libvo/vo_quartz.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_quartz.c	Thu Oct 28 15:53:47 2004 +0000
+++ b/libvo/vo_quartz.c	Thu Oct 28 21:48:41 2004 +0000
@@ -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)