diff options
author | Robin Gareus <robin@gareus.org> | 2020-05-11 21:34:01 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-05-11 21:34:01 +0200 |
commit | 5e2755baa1d996cc8e44045200eb89aa238d8529 (patch) | |
tree | 4b47fc814260eb6b16a61e8e479bd43d9b6ed27b /libs/ardour/mtc_slave.cc | |
parent | 44d87f2cd7e358dd2477633402e39c5fdbc4e326 (diff) |
Slave delta display tweaks
* use left-aligned sign symbol with "sample" unit.
When the delta value jitters in decimal places (e.g. MTC)
it's otherwise no possible to discern + vs -.
* Use white text by default (not green)
Diffstat (limited to 'libs/ardour/mtc_slave.cc')
-rw-r--r-- | libs/ardour/mtc_slave.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/mtc_slave.cc b/libs/ardour/mtc_slave.cc index e228c8cd60..632a5f7e5f 100644 --- a/libs/ardour/mtc_slave.cc +++ b/libs/ardour/mtc_slave.cc @@ -609,11 +609,11 @@ MTC_TransportMaster::delta_string () const } else { if (abs (_current_delta) > _session->sample_rate()) { int secs = rint ((double) _current_delta / _session->sample_rate()); - snprintf(delta, sizeof(delta), "\u0394<span foreground=\"green\" face=\"monospace\" >%s%s%d</span><span face=\"monospace\"> s</span>", + snprintf(delta, sizeof(delta), "\u0394<span face=\"monospace\" >%s%s%d</span><span face=\"monospace\"> s</span>", LEADINGZERO(abs(secs)), PLUSMINUS(-secs), abs(secs)); } else { - snprintf(delta, sizeof(delta), "\u0394<span foreground=\"green\" face=\"monospace\" >%s%s%" PRIi64 "</span><span face=\"monospace\">sm</span>", - LEADINGZERO(abs(_current_delta)), PLUSMINUS(-_current_delta), abs(_current_delta)); + snprintf(delta, sizeof(delta), "\u0394<span face=\"monospace\" >%s%s%" PRIi64 "</span><span face=\"monospace\">sm</span>", + PLUSMINUS(-_current_delta), LEADINGZERO(abs(_current_delta)), abs(_current_delta)); } } return std::string(delta); |