options, command: simplify some option updates

Remove wrapper properties for OSD and video position updates, use the
new mechanism for them. We can mark the options directly. Update
behavior will work for more options (since I've casually marked more
affected options than the old less direct mechanism covered).
This commit is contained in:
wm4
2016-09-19 20:16:44 +02:00
parent df85c76b7f
commit bf5c97a6c3
4 changed files with 56 additions and 86 deletions

View File

@@ -383,7 +383,9 @@ struct m_option {
#define UPDATE_OPT_FIRST (1 << 14)
#define UPDATE_TERM (1 << 14) // terminal options
#define UPDATE_RENDERER (1 << 15) // mainly vo_opengl options
#define UPDATE_OPT_LAST (1 << 15)
#define UPDATE_VIDEOPOS (1 << 16) // video position (panscan etc.)
#define UPDATE_OSD (1 << 17) // related to OSD rendering
#define UPDATE_OPT_LAST (1 << 17)
// All bits between _FIRST and _LAST (inclusive)
#define UPDATE_OPTS_MASK \