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/vo_sdl.c | 1 - 1 file changed, 1 deletion(-) (limited to 'video/out/vo_sdl.c') diff --git a/video/out/vo_sdl.c b/video/out/vo_sdl.c index cff02731cb..893279a8f4 100644 --- a/video/out/vo_sdl.c +++ b/video/out/vo_sdl.c @@ -892,7 +892,6 @@ static void update_screeninfo(struct vo *vo) struct mp_vo_opts *opts = vo->opts; opts->screenwidth = mode.w; opts->screenheight = mode.h; - aspect_save_screenres(vo, opts->screenwidth, opts->screenheight); } static struct mp_image *get_screenshot(struct vo *vo) -- cgit v1.2.3