diff libvo/vo_directx.c @ 14206:9c58002671d5

automatic monitoraspect calculation for vo_directx.
author joey
date Tue, 21 Dec 2004 20:32:26 +0000
parents 87148f636da2
children f8670fdf6ab1
line wrap: on
line diff
--- 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;