diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-04-15 20:50:33 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-04-15 20:50:33 +0000 |
commit | 02c0f0258f05dcd42499a221b795924e3d4c90c2 (patch) | |
tree | 3e72d0f822b044b218e2bfada933b700322f0e49 /libvo | |
parent | a3713ceb29828cce576fa3ea6f936f3ab1d61a38 (diff) | |
download | mpv-02c0f0258f05dcd42499a221b795924e3d4c90c2.tar.bz2 mpv-02c0f0258f05dcd42499a221b795924e3d4c90c2.tar.xz |
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
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/aspect.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |