summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-01-23 10:56:47 +0100
committerwm4 <wm4@nowhere>2013-01-23 10:56:47 +0100
commit704c0cb2db7d20adc5b744b9714fed60642d8e5c (patch)
treefcc52a59c605333eb759a1e53f1274161c282a70 /video
parent7885fce7ea68d4c64e034b152f2a0b08bb648adc (diff)
downloadmpv-704c0cb2db7d20adc5b744b9714fed60642d8e5c.tar.bz2
mpv-704c0cb2db7d20adc5b744b9714fed60642d8e5c.tar.xz
video: remove -x/-y/-xy options
-x/-y were rather useless and obscure. The only use I can see is forcing a specific aspect ratio without having to calculate the aspect ratio float value (although --aspect takes values of the form w:h). This can be also done with --geometry and --no-keepaspect. There was also a comment that -x/-y is useful for -vm, although I don't see how this is useful as it still messes up aspect ratio. -xy is mostly obsolete. It does two things: a) set the window width to a pixel value, b) scale the window size by a factor. a) is already done by --autofit (--autofit=num does exactly the same thing as --xy=num, if num >= 8). b) is not all that useful, so we just drop that functionality.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 484aa20a56..f6151cfa27 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -394,41 +394,9 @@ static void determine_window_geometry(struct vo *vo, int d_w, int d_h)
int scr_w = opts->vo_screenwidth;
int scr_h = opts->vo_screenheight;
- int vid_w = vo->aspdat.orgw;
- int vid_h = vo->aspdat.orgh;
-
- if (opts->screen_size_x || opts->screen_size_y) {
- d_w = opts->screen_size_x;
- d_h = opts->screen_size_y;
- if (!opts->vidmode) {
- if (!d_w)
- d_w = 1;
- if (!d_h)
- d_h = 1;
- if (d_w <= 8)
- d_w *= vid_w;
- if (d_h <= 8)
- d_h *= vid_h;
- }
- }
-
// This is only for applying monitor pixel aspect
- // Store d_w/d_h, because aspect() uses it
- aspect_save_videores(vo, vid_w, vid_h, d_w, d_h);
aspect(vo, &d_w, &d_h, A_NOZOOM);
- if (opts->screen_size_xy >= 0.001) {
- if (opts->screen_size_xy <= 8) {
- // -xy means x+y scale
- d_w *= opts->screen_size_xy;
- d_h *= opts->screen_size_xy;
- } else {
- // -xy means forced width while keeping correct aspect
- d_h = opts->screen_size_xy * d_h / d_w;
- d_w = opts->screen_size_xy;
- }
- }
-
apply_autofit(&d_w, &d_h, scr_w, scr_h, &opts->vo_autofit, true);
apply_autofit(&d_w, &d_h, scr_w, scr_h, &opts->vo_autofit_larger, false);