diff options
author | wm4 <wm4@nowhere> | 2012-09-22 06:15:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-12 10:10:31 +0200 |
commit | 45b432f4c32be5cab798a0658d9461b3a40a6d94 (patch) | |
tree | 3a460173adb5e79a648f1b04fb39d73ba4d6a721 /defaultopts.h | |
parent | 9939776e5ee70818d9cc4a5a7cd9f09da4239164 (diff) | |
download | mpv-45b432f4c32be5cab798a0658d9461b3a40a6d94.tar.bz2 mpv-45b432f4c32be5cab798a0658d9461b3a40a6d94.tar.xz |
commands: replace "switch" with "add" and "cycle"
Now it depends on the command whether a property wraps around, or stops
at min/max valid property value.
For practically all properties, it's quite unambiguous what the "switch"
command should have done, and there's technically no need to replace it
with these new commands. More over, most properties that cycle are
boolean anyway. But it seems more orthogonal to make the difference
explicit, rather than hardcoding it. Having different commands also
makes it more explicit to the user what these commands do, both just due
to the naming, and what wrapping policy is used. The code is simpler
too.
Diffstat (limited to 'defaultopts.h')
0 files changed, 0 insertions, 0 deletions