summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-15 20:17:33 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-05-12 15:27:54 +0200
commit6a2a8880e92442a70696cac217773f1078023084 (patch)
treecc676649342352975782c4c19721b31fa902a68d /video/out/gl_video.h
parentf6aedac7e9891fda2f434cf7fb4bd1a7f17b0440 (diff)
downloadmpv-6a2a8880e92442a70696cac217773f1078023084.tar.bz2
mpv-6a2a8880e92442a70696cac217773f1078023084.tar.xz
add a way to resize window contents without VO resize
gl_video_resize_redraw() simply resizes and redraws (but without invoking swapGlBuffers()). The VO is not involved in any way, so this can simply be called from inside the mpgl lock from any thread. Requires a minor refactor of the GL OSD code in order to redraw without an OSD object.
Diffstat (limited to 'video/out/gl_video.h')
-rw-r--r--video/out/gl_video.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gl_video.h b/video/out/gl_video.h
index 985db9b9cc..8418df1bc1 100644
--- a/video/out/gl_video.h
+++ b/video/out/gl_video.h
@@ -66,6 +66,7 @@ bool gl_video_set_equalizer(struct gl_video *p, const char *name, int val);
bool gl_video_get_equalizer(struct gl_video *p, const char *name, int *val);
void gl_video_set_debug(struct gl_video *p, bool enable);
+void gl_video_resize_redraw(struct gl_video *p, int w, int h);
bool gl_video_check_format(int mp_format);