summaryrefslogtreecommitdiffstats
path: root/mp_osd.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-09-09 02:08:08 +0200
committerwm4 <wm4@nowhere>2012-10-12 10:10:30 +0200
commita668ae0ff90c43ebcdea4f581aef0c98aeebd382 (patch)
treee1de875829472b0d6230372f02d7a81c9bcbeef0 /mp_osd.h
parent6096966dee420179b65f4d2d3b93207419e58471 (diff)
downloadmpv-a668ae0ff90c43ebcdea4f581aef0c98aeebd382.tar.bz2
mpv-a668ae0ff90c43ebcdea4f581aef0c98aeebd382.tar.xz
commands: change input commands to make OSD usage explicit
Most input commands had their own policy whether to display an OSD message for user feedback or not. Some commands had two variants, one that showed an OSD message and one that didn't (e.g. step_property_osd and step_property). Change it such that all commands show a message on the OSD. Add a "no-osd" modifier that disables OSD for that command. Rename the "step_property" and "step_property_osd" command to "switch", and rename "set_property" and "set_property_osd" to "set". Note that commands which haven't used OSD before still don't use OSD. That will possibly be fixed later. (E.g. "screenshot" could display an OSD message instead of just printing a message on the terminal.) The chapter and edition properties still produce OSD messages even with "no-osd", because they don't map so well to the property_osd_display[] mechanism.
Diffstat (limited to 'mp_osd.h')
-rw-r--r--mp_osd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mp_osd.h b/mp_osd.h
index a6797ed318..86eed3a142 100644
--- a/mp_osd.h
+++ b/mp_osd.h
@@ -33,6 +33,7 @@
#define MAX_OSD_LEVEL 3
#define MAX_TERM_OSD_LEVEL 1
+#define OSD_LEVEL_INVISIBLE 4
struct MPContext;