summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;