mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 15:36:24 +01:00
'gtk2_ardour' - Use 'floor / floorf' instead of 'trunc / truncf'
This commit is contained in:
parent
bb062f2b90
commit
8bf59e88e5
2 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue