summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-20 14:02:17 +0100
committerwm4 <wm4@nowhere>2017-01-20 14:03:34 +0100
commitfd203ff16a97b97acf428f8ab53d8b31eb8fae99 (patch)
treeaf6bd1f5591c627d3f523a7787b5e251178df568 /options
parentd890e0731c0a0c002c32e8be89130e178059d3ba (diff)
downloadmpv-fd203ff16a97b97acf428f8ab53d8b31eb8fae99.tar.bz2
mpv-fd203ff16a97b97acf428f8ab53d8b31eb8fae99.tar.xz
options: refacactor how --opengl-dwmflush is declared
Same deal as previous commit, except this time we just readd it as lone global option, and read it directly.
Diffstat (limited to 'options')
-rw-r--r--options/options.c5
-rw-r--r--options/options.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index af13d1e434..cb2848e05b 100644
--- a/options/options.c
+++ b/options/options.c
@@ -697,6 +697,11 @@ const m_option_t mp_opts[] = {
OPT_SUBSTRUCT("", angle_opts, angle_conf, 0),
#endif
+#if HAVE_GL_WIN32
+ OPT_CHOICE("opengl-dwmflush", wingl_dwm_flush, 0,
+ ({"no", -1}, {"auto", 0}, {"windowed", 1}, {"yes", 2})),
+#endif
+
#if HAVE_ENCODING
OPT_SUBSTRUCT("", encode_opts, encode_config, 0),
#endif
diff --git a/options/options.h b/options/options.h
index 842781cb4b..d668832fea 100644
--- a/options/options.h
+++ b/options/options.h
@@ -319,6 +319,8 @@ typedef struct MPOpts {
char *ipc_path;
char *input_file;
+ int wingl_dwm_flush;
+
struct gl_video_opts *gl_video_opts;
struct angle_opts *angle_opts;
struct dvd_opts *dvd_opts;