Skip to content

Commit c01e795

Browse files
committed
video/out/kitty: set display_par when drawing osd
1 parent 4c26e7d commit c01e795

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

video/out/vo_kitty.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ struct priv {
100100
bstr cmd;
101101

102102
int left, top, width, height, cols, rows;
103+
double display_par;
103104

104105
struct mp_rect src;
105106
struct mp_rect dst;
@@ -175,6 +176,7 @@ static void set_out_params(struct vo *vo)
175176
p->opts.top : p->rows * p->dst.y0 / vo->dheight;
176177
p->left = p->opts.left > 0 ?
177178
p->opts.left : p->cols * p->dst.x0 / vo->dwidth;
179+
p->display_par = p->osd.display_par;
178180

179181
p->buffer_size = 3 * p->width * p->height;
180182
p->output_size = AV_BASE64_SIZE(p->buffer_size);
@@ -280,7 +282,7 @@ static bool draw_frame(struct vo *vo, struct vo_frame *frame)
280282
mp_image_clear(p->frame, 0, 0, p->width, p->height);
281283
}
282284

283-
struct mp_osd_res res = { .w = p->width, .h = p->height };
285+
struct mp_osd_res res = { .w = p->width, .h = p->height, .display_par = p->display_par };
284286
osd_draw_on_image(vo->osd, res, mpi ? mpi->pts : 0, 0, p->frame);
285287

286288

0 commit comments

Comments
 (0)