'gtk2_ardour' - Use 'floor / floorf' instead of 'trunc / truncf'

This commit is contained in:
John Emmas 2013-10-03 09:32:08 +01:00
parent bb062f2b90
commit 8bf59e88e5
2 changed files with 4 additions and 4 deletions

View file

@ -3078,13 +3078,13 @@ require some unused files to continue to exist."));
space_adjusted = rep.space;
} else if (rep.space < 1000000) {
bprefix = _("kilo");
space_adjusted = truncf((float)rep.space / 1000.0);
space_adjusted = floorf((float)rep.space / 1000.0);
} else if (rep.space < 1000000 * 1000) {
bprefix = _("mega");
space_adjusted = truncf((float)rep.space / (1000.0 * 1000.0));
space_adjusted = floorf((float)rep.space / (1000.0 * 1000.0));
} else {
bprefix = _("giga");
space_adjusted = truncf((float)rep.space / (1000.0 * 1000 * 1000.0));
space_adjusted = floorf((float)rep.space / (1000.0 * 1000 * 1000.0));
}
if (msg_delete) {

View file

@ -1739,7 +1739,7 @@ AudioClock::on_motion_notify_event (GdkEventMotion *ev)
drag_y = ev->y;
if (trunc (drag_accum) != 0) {
if (floor (drag_accum) != 0) {
framepos_t frames;
framepos_t pos;