summaryrefslogtreecommitdiff
path: root/gtk2_ardour/shuttle_control.cc
diff options
context:
space:
mode:
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);
}
}