diff options
author | wm4 <wm4@nowhere> | 2016-03-21 22:23:41 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-03-21 22:23:41 +0100 |
commit | d6c99c8513a02c6dc7187d799c88327c858619c4 (patch) | |
tree | be65c67446e62192ad8c6a21eef9846145d843df /video/out/opengl/video.c | |
parent | 5f1ff78516bb5aaf6c38a5df55959e1165c059ee (diff) | |
download | mpv-d6c99c8513a02c6dc7187d799c88327c858619c4.tar.bz2 mpv-d6c99c8513a02c6dc7187d799c88327c858619c4.tar.xz |
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.)
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r-- | video/out/opengl/video.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 94e728912d..a1e98bef14 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -2448,6 +2448,8 @@ void gl_video_resize(struct gl_video *p, int vp_w, int vp_h, p->vp_h = vp_h; gl_video_reset_surfaces(p); + + mpgl_osd_resize(p->osd, p->osd_rect, p->image_params.stereo_out); } static bool unmap_image(struct gl_video *p, struct mp_image *mpi) |