diff options
Diffstat (limited to 'video/out/vo_xv.c')
-rw-r--r-- | video/out/vo_xv.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/video/out/vo_xv.c b/video/out/vo_xv.c index 53a46cbe5a..9f63c2ba49 100644 --- a/video/out/vo_xv.c +++ b/video/out/vo_xv.c @@ -616,12 +616,7 @@ static void draw_osd(struct vo *vo, struct osd_state *osd) struct mp_image img = get_xv_buffer(vo, ctx->current_buf); - struct mp_osd_res res = { - .w = ctx->image_width, - .h = ctx->image_height, - .display_par = 1.0 / vo->aspdat.par, - }; - + struct mp_osd_res res = osd_res_from_image_params(vo->params); osd_draw_on_image(osd, res, osd_get_vo_pts(osd), 0, &img); } |