# HG changeset patch # User joey # Date 1103661146 0 # Node ID 9c58002671d5e742d912f2b8c66326900794e54e # Parent 87148f636da2c311dd18b9659803c3379a82d4da automatic monitoraspect calculation for vo_directx. diff -r 87148f636da2 -r 9c58002671d5 libvo/vo_directx.c --- a/libvo/vo_directx.c Tue Dec 21 20:31:39 2004 +0000 +++ b/libvo/vo_directx.c Tue Dec 21 20:32:26 2004 +0000 @@ -80,6 +80,7 @@ extern int vo_rootwin; extern int vidmode; extern int vo_colorkey; +extern float monitor_aspect; /***************************************************************************** * DirectDraw GUIDs. @@ -1196,6 +1197,7 @@ 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;