From fd203ff16a97b97acf428f8ab53d8b31eb8fae99 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 20 Jan 2017 14:02:17 +0100 Subject: 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. --- options/options.c | 5 +++++ options/options.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'options') 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; -- cgit v1.2.3