From d3ad4e23088da95697ab2ec385267c06293c4515 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 12 Mar 2020 14:10:37 +0100 Subject: options: remove intpair option type This was mostly unused, and has certain problems. Just get rid of it. It was still used in CDDA (--cdda-span) and a debug option for OpenGL (--opengl-check-pattern). Replace both of these with 2 options, where each sets the start/end values of the former span. Both were undocumented somehow (normally we require all options to be documented), so I'm not caring about compatibility, and not bothering to add it to the API changelog. --- video/out/opengl/context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video') diff --git a/video/out/opengl/context.c b/video/out/opengl/context.c index d9b3925983..07fa183acc 100644 --- a/video/out/opengl/context.c +++ b/video/out/opengl/context.c @@ -62,7 +62,8 @@ const struct m_sub_options opengl_conf = { OPT_FLAG("opengl-glfinish", use_glfinish, 0), OPT_FLAG("opengl-waitvsync", waitvsync, 0), OPT_INT("opengl-swapinterval", swapinterval, 0), - OPT_INTPAIR("opengl-check-pattern", vsync_pattern, 0), + OPT_INT("opengl-check-pattern-a", vsync_pattern[0], 0), + OPT_INT("opengl-check-pattern-b", vsync_pattern[1], 0), OPT_INT("opengl-restrict", restrict_version, 0), OPT_CHOICE("opengl-es", gles_mode, 0, ({"auto", GLES_AUTO}, {"yes", GLES_YES}, {"no", GLES_NO})), -- cgit v1.2.3