add mixbus profile which removes the tearoffs
[ardour.git] / gtk2_ardour / audio_clock.cc
index b24d22f1b9fd2ec9e85155ddbd85424f3103f15a..0c7f41f6ebe699b4b48d43a9a631df8ef0753119 100644 (file)
@@ -45,6 +45,7 @@
 #include "i18n.h"
 
 using namespace ARDOUR;
+using namespace ARDOUR_UI_UTILS;
 using namespace PBD;
 using namespace Gtk;
 using namespace std;
@@ -282,7 +283,7 @@ AudioClock::set_colors ()
 }
 
 void
-AudioClock::render (cairo_t* cr)
+AudioClock::render (cairo_t* cr, cairo_rectangle_t*)
 {
        /* main layout: rounded rect, plus the text */
 
@@ -1131,7 +1132,7 @@ AudioClock::set_minsec (framepos_t when, bool /*force*/)
        mins = (int) floor (left / (_session->frame_rate() * 60.0f));
        left -= (framecnt_t) floor (mins * _session->frame_rate() * 60.0f);
        secs = (int) floor (left / (float) _session->frame_rate());
-       left -= (framecnt_t) floor (secs * _session->frame_rate());
+       left -= (framecnt_t) floor ((double)(secs * _session->frame_rate()));
        millisecs = floor (left * 1000.0 / (float) _session->frame_rate());
 
        if (negative) {
@@ -1742,7 +1743,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;