From 7c9f32620f2d5f0f19130e7f6b2fa7bf38d3729b Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Sun, 30 Oct 2016 14:38:26 +0100 Subject: Apply autofit-larger after autofit-smaller This prevents the window scaling beyond screen dimensions Fixes #3753 --- video/out/win_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/out/win_state.c b/video/out/win_state.c index a80a650315..29eaa1b663 100644 --- a/video/out/win_state.c +++ b/video/out/win_state.c @@ -101,8 +101,8 @@ void vo_calc_window_geometry(struct vo *vo, const struct mp_rect *screen, calc_monitor_aspect(opts, scr_w, scr_h, &out_geo->monitor_par, &d_w, &d_h); apply_autofit(&d_w, &d_h, scr_w, scr_h, &opts->autofit, true, true); - apply_autofit(&d_w, &d_h, scr_w, scr_h, &opts->autofit_larger, false, true); apply_autofit(&d_w, &d_h, scr_w, scr_h, &opts->autofit_smaller, true, false); + apply_autofit(&d_w, &d_h, scr_w, scr_h, &opts->autofit_larger, false, true); out_geo->win.x0 = (int)(scr_w - d_w) / 2; out_geo->win.y0 = (int)(scr_h - d_h) / 2; -- cgit v1.2.3