1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 12:17:12 +00:00

automatic monitoraspect calculation for vo_directx.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14207 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
joey 2004-12-21 20:32:26 +00:00
parent 90700b67a7
commit 87b4d8af68

View File

@ -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;