diff options
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/gpu/video.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index 4e9f6d5e27..11c984615d 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -3184,6 +3184,9 @@ void gl_video_screenshot(struct gl_video *p, struct vo_frame *frame, if (w < 1 || h < 1) return; + if (p->image_params.rotate % 180 == 90) + MPSWAP(int, w, h); + struct mp_rect rc = {0, 0, w, h}; struct mp_osd_res osd = {.w = w, .h = h, .display_par = 1.0}; gl_video_resize(p, &rc, &rc, &osd); |