summaryrefslogtreecommitdiff
path: root/gtk2_ardour/shuttle_control.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-03-10 11:00:53 +0100
committerRobin Gareus <robin@gareus.org>2015-03-10 11:00:53 +0100
commit06bea13b7c2636bc404c5e142864bb5bc55578dc (patch)
treea7ec77841b79d730b8fde71706fd9e105901494b /gtk2_ardour/shuttle_control.cc
parent2d20bcab4a0a7787f61c15679988c6db47c2ca60 (diff)
increase shuttle speed display granularity.
Diffstat (limited to 'gtk2_ardour/shuttle_control.cc')
-rw-r--r--gtk2_ardour/shuttle_control.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/shuttle_control.cc b/gtk2_ardour/shuttle_control.cc
index 2efda697a1..d879ce50ff 100644
--- a/gtk2_ardour/shuttle_control.cc
+++ b/gtk2_ardour/shuttle_control.cc
@@ -568,9 +568,9 @@ ShuttleControl::render (cairo_t* cr, cairo_rectangle_t*)
snprintf (buf, sizeof (buf), "%s", _("Playing"));
} else {
if (speed < 0.0) {
- snprintf (buf, sizeof (buf), "<<< %d%%", (int) round (-speed * 100));
+ snprintf (buf, sizeof (buf), "<<< %.1f%%", -speed * 100.f);
} else {
- snprintf (buf, sizeof (buf), ">>> %d%%", (int) round (speed * 100));
+ snprintf (buf, sizeof (buf), ">>> %.1f%%", speed * 100.f);
}
}