diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2024-04-13 05:05:37 +0200 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-04-13 13:37:12 +0200 |
commit | a9354b36caed24d13987cad3a87b16227cc36f2c (patch) | |
tree | 597033f12dfaab10bd44348148fb1316ced62f17 /video/out | |
parent | 7a0c8c4619cc69e07a2dd2d5a811a8dc00ed0568 (diff) | |
download | mpv-a9354b36caed24d13987cad3a87b16227cc36f2c.tar.bz2 mpv-a9354b36caed24d13987cad3a87b16227cc36f2c.tar.xz |
vo_gpu_next: set target resolution to crop value
Use rect of the actual image instead of FBO size which includes
margins.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/vo_gpu_next.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_gpu_next.c b/video/out/vo_gpu_next.c index de33e6bc36..8616d4f2cc 100644 --- a/video/out/vo_gpu_next.c +++ b/video/out/vo_gpu_next.c @@ -1134,8 +1134,8 @@ static void draw_frame(struct vo *vo, struct vo_frame *frame) p->target_params = (struct mp_image_params){ .imgfmt_name = swframe.fbo->params.format ? swframe.fbo->params.format->name : NULL, - .w = swframe.fbo->params.w, - .h = swframe.fbo->params.h, + .w = mp_rect_w(target.crop), + .h = mp_rect_h(target.crop), .color = target.color, .repr = target.repr, .rotate = target.rotation, |