From 569383bc54cc2c7e0367614e811773c6bff7244e Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 13 Mar 2018 10:38:31 +0100 Subject: vo_gpu: fix anamorphic screenshots We took the storage size instead of the display size for "unscaled" screenshots. Even if it's called "unscaled", it's still supposed to scale to compensate for aspect ratio. (How many commits fixing anamorphic screenshots in various situations are there?) Fixes #5619. --- video/out/gpu/video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index 91a405f25e..2fae4021b5 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -3180,8 +3180,8 @@ void gl_video_screenshot(struct gl_video *p, struct vo_frame *frame, struct mp_osd_res old_osd = p->osd_rect; if (!args->scaled) { - int w = p->real_image_params.w; - int h = p->real_image_params.h; + int w, h; + mp_image_params_get_dsize(&p->real_image_params, &w, &h); if (w < 1 || h < 1) return; -- cgit v1.2.3