From 704c0cb2db7d20adc5b744b9714fed60642d8e5c Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 23 Jan 2013 10:56:47 +0100 Subject: 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. --- video/out/vo.c | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'video') 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); -- cgit v1.2.3