From e85620ef8e0e332cbf30c21ddce74a9b1d7f69ab Mon Sep 17 00:00:00 2001 From: nplourde Date: Thu, 28 Oct 2004 21:48:41 +0000 Subject: autodetect proper monitor aspect git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13792 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_quartz.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libvo/vo_quartz.c') diff --git a/libvo/vo_quartz.c b/libvo/vo_quartz.c index b3a4d57865..269a960387 100644 --- a/libvo/vo_quartz.c +++ b/libvo/vo_quartz.c @@ -71,6 +71,7 @@ extern int vo_rootwin; 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 @@ static uint32_t config(uint32_t width, uint32_t height, uint32_t d_width, uint32 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) -- cgit v1.2.3