diff options
author | wm4 <wm4@nowhere> | 2018-03-13 10:38:31 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-03-15 23:13:53 -0700 |
commit | 569383bc54cc2c7e0367614e811773c6bff7244e (patch) | |
tree | 5dd85ecd53ca7d714251ff5abf87f63f6d9edaad /video/out | |
parent | e1b4e5e727eacf8c5cc6af087af6757019175163 (diff) |
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.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/gpu/video.c | 4 |
1 files 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; |