From d956bbc065d570f425f402c83d69957584591dbd Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 11 Jan 2014 18:44:27 +0100 Subject: video/out: simplify monitor aspect handling For some reason, this made all VO backends both set the screen resolution in opts->screenwidth/height, and call aspect_save_screenres(). Remove the latter. Move the code to calculate the PAR-corrected window size from aspect.c to vo.c, and make it so that the monitor PAR is recalculated when it makes sense. --- video/out/wayland_common.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'video/out/wayland_common.c') diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 716a0c2b65..086be41ea5 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -1107,8 +1107,6 @@ static void vo_wayland_update_screeninfo (struct vo *vo) wl->window.fs_width = opts->screenwidth; wl->window.fs_height = opts->screenheight; - - aspect_save_screenres(vo, opts->screenwidth, opts->screenheight); } int vo_wayland_control (struct vo *vo, int *events, int request, void *arg) -- cgit v1.2.3