summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-21 20:32:26 +0000
committerjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-21 20:32:26 +0000
commit87b4d8af6829775845a2c25cff6efc5ec80a882c (patch)
tree2bea547462da2861f16634a418f3bd5d3ef35360 /libvo
parent90700b67a7626f4fc24903c716ae6c58ca3452b1 (diff)
downloadmpv-87b4d8af6829775845a2c25cff6efc5ec80a882c.tar.bz2
mpv-87b4d8af6829775845a2c25cff6efc5ec80a882c.tar.xz
automatic monitoraspect calculation for vo_directx.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14207 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_directx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c
index 6811b2497e..81ce0b725c 100644
--- a/libvo/vo_directx.c
+++ b/libvo/vo_directx.c
@@ -80,6 +80,7 @@ extern int vo_ontop;
extern int vo_rootwin;
extern int vidmode;
extern int vo_colorkey;
+extern float monitor_aspect;
/*****************************************************************************
* DirectDraw GUIDs.
@@ -1196,6 +1197,7 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
RECT rd;
vo_screenwidth = monitor_rect.right - monitor_rect.left;
vo_screenheight = monitor_rect.bottom - monitor_rect.top;
+ monitor_aspect = (float)vo_screenwidth / (float)vo_screenheight;
vo_fs = options & 0x01;
image_format = format;
image_width = width;