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.
This commit is contained in:
wm4 2018-03-13 10:38:31 +01:00 committed by Kevin Mitchell
parent e1b4e5e727
commit 569383bc54
1 changed files with 2 additions and 2 deletions

View File

@ -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;