1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-01 12:42:04 +00:00

autodetect proper monitor aspect

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13792 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nplourde 2004-10-28 21:48:41 +00:00
parent c6110e02ea
commit e85620ef8e

View File

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