summaryrefslogtreecommitdiffstats
path: root/video/out/vo_sdl.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-01-11 18:44:27 +0100
committerwm4 <wm4@nowhere>2014-01-11 18:58:06 +0100
commitd956bbc065d570f425f402c83d69957584591dbd (patch)
treea515ffd2ada6a21d583e00f22079c0e33ff0dc76 /video/out/vo_sdl.c
parent3b8e457379586b3400ede0b3ca96baa15aa1ab06 (diff)
downloadmpv-d956bbc065d570f425f402c83d69957584591dbd.tar.bz2
mpv-d956bbc065d570f425f402c83d69957584591dbd.tar.xz
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.
Diffstat (limited to 'video/out/vo_sdl.c')
-rw-r--r--video/out/vo_sdl.c1
1 files changed, 0 insertions, 1 deletions
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)