mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 21:06:00 +00:00
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:
parent
e1b4e5e727
commit
569383bc54
@ -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;
|
struct mp_osd_res old_osd = p->osd_rect;
|
||||||
|
|
||||||
if (!args->scaled) {
|
if (!args->scaled) {
|
||||||
int w = p->real_image_params.w;
|
int w, h;
|
||||||
int h = p->real_image_params.h;
|
mp_image_params_get_dsize(&p->real_image_params, &w, &h);
|
||||||
if (w < 1 || h < 1)
|
if (w < 1 || h < 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user