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.) --- video/out/opengl/osd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out/opengl/osd.h') diff --git a/video/out/opengl/osd.h b/video/out/opengl/osd.h index bd47f71764..34cbf2b383 100644 --- a/video/out/opengl/osd.h +++ b/video/out/opengl/osd.h @@ -14,6 +14,7 @@ void mpgl_osd_set_options(struct mpgl_osd *ctx, bool pbo); void mpgl_osd_generate(struct mpgl_osd *ctx, struct mp_osd_res res, double pts, int stereo_mode, int draw_flags); +void mpgl_osd_resize(struct mpgl_osd *ctx, struct mp_osd_res res, int stereo_mode); enum sub_bitmap_format mpgl_osd_get_part_format(struct mpgl_osd *ctx, int index); struct gl_vao *mpgl_osd_get_vao(struct mpgl_osd *ctx); void mpgl_osd_draw_part(struct mpgl_osd *ctx, int vp_w, int vp_h, int index); -- cgit v1.2.3