[MPlayer-cvslog] CVS: main/libvo vo_directx.c,1.42,1.43
Joey Parrish CVS
syncmail at mplayerhq.hu
Tue Dec 21 21:32:29 CET 2004
CVS change done by Joey Parrish CVS
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv25575/libvo
Modified Files:
vo_directx.c
Log Message:
automatic monitoraspect calculation for vo_directx.
Index: vo_directx.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_directx.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- vo_directx.c 21 Dec 2004 20:31:39 -0000 1.42
+++ vo_directx.c 21 Dec 2004 20:32:26 -0000 1.43
@@ -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;
More information about the MPlayer-cvslog
mailing list