mirror of https://github.com/mpv-player/mpv
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:
parent
7a0c8c4619
commit
a9354b36ca
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue