[MPlayer-cvslog] CVS: main/libvo aspect.c,1.18,1.19
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Sat Apr 15 22:50:36 CEST 2006
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv6259/libvo
Modified Files:
aspect.c
Log Message:
new monitorpixelaspect option, esp. useful for xinerama setups with upcoming patch
Index: aspect.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/aspect.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- aspect.c 27 Sep 2005 08:32:36 -0000 1.18
+++ aspect.c 15 Apr 2006 20:50:28 -0000 1.19
@@ -19,6 +19,7 @@
#include "video_out.h"
float monitor_aspect=4.0/3.0;
+float monitor_pixel_aspect=0;
extern float movie_aspect;
static struct {
@@ -53,6 +54,8 @@
#endif
aspdat.scrw = scrw;
aspdat.scrh = scrh;
+ if (monitor_pixel_aspect)
+ monitor_aspect = monitor_pixel_aspect * scrw / scrh;
}
/* aspect is called with the source resolution and the
More information about the MPlayer-cvslog
mailing list