summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authornplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-10-28 21:48:41 +0000
committernplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-10-28 21:48:41 +0000
commite85620ef8e0e332cbf30c21ddce74a9b1d7f69ab (patch)
tree41e3ebc0b570d559d5259827c8fd7d7b83568901 /libvo
parentc6110e02eaf8fd7b53cf0ae8552fa0d2fe0dfd28 (diff)
downloadmpv-e85620ef8e0e332cbf30c21ddce74a9b1d7f69ab.tar.bz2
mpv-e85620ef8e0e332cbf30c21ddce74a9b1d7f69ab.tar.xz
autodetect proper monitor aspect
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13792 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_quartz.c3
1 files changed, 3 insertions, 0 deletions
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)