From e79efd28f8f3f539ca976733ff4209e372dcb5ed Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 25 Sep 2012 03:24:38 +0200 Subject: commands: more user-control whether a command shows OSD bars/messages The "no-osd" prefix was introduced earlier to disable OSD selectively based on the key binding. Extend this, and allow the user to force display of an OSD bar ("osd-bar"), OSD message ("osd-msg") or both ("osd-msg-bar"). This changes mainly how property setting functions behave. The default behavior is still the same. --- input/input.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'input/input.c') diff --git a/input/input.c b/input/input.c index a1ab808125..3cae41bfff 100644 --- a/input/input.c +++ b/input/input.c @@ -852,6 +852,14 @@ mp_cmd_t *mp_input_parse_cmd(bstr str) if (eat_token(&str, "no-osd")) { on_osd = MP_ON_OSD_NO; + } else if (eat_token(&str, "osd-bar")) { + on_osd = MP_ON_OSD_BAR; + } else if (eat_token(&str, "osd-msg")) { + on_osd = MP_ON_OSD_MSG; + } else if (eat_token(&str, "osd-msg-bar")) { + on_osd = MP_ON_OSD_MSG | MP_ON_OSD_BAR; + } else if (eat_token(&str, "osd-auto")) { + // default } int cmd_idx = 0; -- cgit v1.2.3