1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-11 17:37:23 +00:00

-panscan should also work for right and left borders

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25810 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-01-19 18:12:10 +00:00
parent 51d433ec9b
commit 5558291ae3

View File

@ -134,6 +134,8 @@ void panscan_calc( void )
if (vo_panscanrange > 0) { if (vo_panscanrange > 0) {
aspect(&fwidth,&fheight,A_ZOOM); aspect(&fwidth,&fheight,A_ZOOM);
vo_panscan_area = (aspdat.scrh-fheight); vo_panscan_area = (aspdat.scrh-fheight);
if (!vo_panscan_area)
vo_panscan_area = aspdat.scrw - fwidth;
vo_panscan_area *= vo_panscanrange; vo_panscan_area *= vo_panscanrange;
} else } else
vo_panscan_area = -vo_panscanrange * aspdat.scrh; vo_panscan_area = -vo_panscanrange * aspdat.scrh;