vo_gpu_next: set target resolution to crop value

Use rect of the actual image instead of FBO size which includes
margins.
This commit is contained in:
Kacper Michajłow 2024-04-13 05:05:37 +02:00
parent 7a0c8c4619
commit a9354b36ca
1 changed files with 2 additions and 2 deletions

View File

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