summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-14 23:59:43 +0200
committerwm4 <wm4@nowhere>2013-08-19 12:55:53 +0200
commit67704e2977d2bb5c35f962b154d5e8e481e2d508 (patch)
tree553e02586c4d0a0847067c999e4f3947a8d0dd1e /video
parent4579cce768d0c9c84dc5f318b7189ffb03b49ece (diff)
downloadmpv-67704e2977d2bb5c35f962b154d5e8e481e2d508.tar.bz2
mpv-67704e2977d2bb5c35f962b154d5e8e481e2d508.tar.xz
options: remove --panscanrange option
This option allowed you to extend the range of the panscan controls, so that you could essentially use it to scale the video. This will be replaced by a separate option to set the zoom factor directly.
Diffstat (limited to 'video')
-rw-r--r--video/out/aspect.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/video/out/aspect.c b/video/out/aspect.c
index aa2e6e64d8..a5a1f09786 100644
--- a/video/out/aspect.c
+++ b/video/out/aspect.c
@@ -96,14 +96,9 @@ void aspect_calc_panscan(struct vo *vo, int *out_w, int *out_h)
int fwidth, fheight;
aspect_calc(vo, &fwidth, &fheight);
- int vo_panscan_area;
- if (opts->panscanrange > 0) {
- vo_panscan_area = vo->dheight - fheight;
- if (!vo_panscan_area)
- vo_panscan_area = vo->dwidth - fwidth;
- vo_panscan_area *= opts->panscanrange;
- } else
- vo_panscan_area = -opts->panscanrange * vo->dheight;
+ int vo_panscan_area = vo->dheight - fheight;
+ if (!vo_panscan_area)
+ vo_panscan_area = vo->dwidth - fwidth;
*out_w = fwidth + vo_panscan_area * opts->panscan * fwidth / fheight;
*out_h = fheight + vo_panscan_area * opts->panscan;