summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authordudemanguy <random342@airmail.cc>2019-10-14 12:16:42 -0500
committerDudemanguy <random342@airmail.cc>2019-10-20 15:34:57 +0000
commit027ca4fb855f3dff4cba1c907c92c509b82e6fe8 (patch)
tree7dc4946579de357aa5fe14f1ec46e735905db33a /options
parentbedca07a021863d264e7c4c471cc30102899500f (diff)
downloadmpv-027ca4fb855f3dff4cba1c907c92c509b82e6fe8.tar.bz2
mpv-027ca4fb855f3dff4cba1c907c92c509b82e6fe8.tar.xz
wayland: add various render-related options
The newest wayland changes have some new logic that make sense to expose to users as configurable options.
Diffstat (limited to 'options')
-rw-r--r--options/options.c5
-rw-r--r--options/options.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index d8654c2146..6743e320da 100644
--- a/options/options.c
+++ b/options/options.c
@@ -92,6 +92,7 @@ extern const struct m_sub_options angle_conf;
extern const struct m_sub_options cocoa_conf;
extern const struct m_sub_options macos_conf;
extern const struct m_sub_options android_conf;
+extern const struct m_sub_options wayland_conf;
extern const struct m_sub_options vaapi_conf;
static const struct m_sub_options screenshot_conf = {
@@ -750,6 +751,10 @@ const m_option_t mp_opts[] = {
OPT_SUBSTRUCT("", android_opts, android_conf, 0),
#endif
+#if HAVE_WAYLAND
+ OPT_SUBSTRUCT("", wayland_opts, wayland_conf, 0),
+#endif
+
#if HAVE_GL_WIN32
OPT_CHOICE("opengl-dwmflush", wingl_dwm_flush, 0,
({"no", -1}, {"auto", 0}, {"windowed", 1}, {"yes", 2})),
diff --git a/options/options.h b/options/options.h
index fb5f842565..c0f01ae5dc 100644
--- a/options/options.h
+++ b/options/options.h
@@ -336,6 +336,7 @@ typedef struct MPOpts {
struct cocoa_opts *cocoa_opts;
struct macos_opts *macos_opts;
struct android_opts *android_opts;
+ struct wayland_opts *wayland_opts;
struct dvd_opts *dvd_opts;
struct vaapi_opts *vaapi_opts;