From 06bea13b7c2636bc404c5e142864bb5bc55578dc Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 10 Mar 2015 11:00:53 +0100 Subject: increase shuttle speed display granularity. --- gtk2_ardour/shuttle_control.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour') 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); } } -- cgit v1.2.3