From d6c99c8513a02c6dc7187d799c88327c858619c4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 21 Mar 2016 22:23:41 +0100 Subject: vo_opengl, osd: allow osc.lua to react faster on resizes Glitches when resizing are still possible, but are reduced. Other VOs could support this too, but don't need to do so. (Totally avoiding glitches would be much more effort, and probably not worth the trouble. How about you just watch the video the player is playing, instead of spending your time resizing the window.) --- sub/osd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sub/osd.h') diff --git a/sub/osd.h b/sub/osd.h index 494b534d5e..0c9dbc3e90 100644 --- a/sub/osd.h +++ b/sub/osd.h @@ -176,6 +176,8 @@ void osd_draw_on_image_p(struct osd_state *osd, struct mp_osd_res res, double video_pts, int draw_flags, struct mp_image_pool *pool, struct mp_image *dest); +void osd_resize(struct osd_state *osd, struct mp_osd_res res); + struct mp_image_params; struct mp_osd_res osd_res_from_image_params(const struct mp_image_params *p); -- cgit v1.2.3