diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-19 18:12:10 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-19 18:12:10 +0000 |
commit | 5558291ae3ffed87427a3c76b9f2a6a503f3701a (patch) | |
tree | 922fc1519ecdb1a4aa56cda9c9d4331742343fda | |
parent | 51d433ec9ba29493849f353cecec2cba6e5615dc (diff) |
-panscan should also work for right and left borders
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25810 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/aspect.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/aspect.c b/libvo/aspect.c index 1831f98478..7a91d49e9c 100644 --- a/libvo/aspect.c +++ b/libvo/aspect.c @@ -134,6 +134,8 @@ void panscan_calc( void ) if (vo_panscanrange > 0) { aspect(&fwidth,&fheight,A_ZOOM); vo_panscan_area = (aspdat.scrh-fheight); + if (!vo_panscan_area) + vo_panscan_area = aspdat.scrw - fwidth; vo_panscan_area *= vo_panscanrange; } else vo_panscan_area = -vo_panscanrange * aspdat.scrh; |