increase shuttle speed display granularity.

This commit is contained in:
Robin Gareus 2015-03-10 11:00:53 +01:00
parent 2d20bcab4a
commit 06bea13b7c

View File

@ -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);
}
}