From 02c0f0258f05dcd42499a221b795924e3d4c90c2 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 15 Apr 2006 20:50:33 +0000 Subject: new monitorpixelaspect option, esp. useful for xinerama setups with upcoming patch git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18106 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/aspect.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libvo') diff --git a/libvo/aspect.c b/libvo/aspect.c index 05c729baf3..0ecf02e858 100644 --- a/libvo/aspect.c +++ b/libvo/aspect.c @@ -19,6 +19,7 @@ float vo_panscanrange = 1.0; #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 @@ void aspect_save_screenres(int scrw, int scrh){ #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 -- cgit v1.2.3