Merged up to trunk R732
[ardour.git] / gtk2_ardour / fft_graph.cc
index 5e462aa447394ac41146651cd34d91323b53020c..7c8b4b4095a0f47d6154f082e77e8b0a711c0fcd 100644 (file)
@@ -234,11 +234,11 @@ FFTGraph::draw_scales(Glib::RefPtr<Gdk::Window> window)
                while (_logScale[logscale_pos] < position_on_scale)
                        logscale_pos++;
                
-               int coord = (int)(v_margin + 1.0 + position_on_scale);
+               int coord = v_margin + 1.0 + position_on_scale;
                
                int SR = 44100;
 
-               int rate_at_pos = (int)((double)(SR/2) * (double)logscale_pos / (double)_dataSize);
+               int rate_at_pos = (double)(SR/2) * (double)logscale_pos / (double)_dataSize;
                
                char buf[32];
                snprintf(buf,32,"%dhz",rate_at_pos);
@@ -384,7 +384,7 @@ FFTGraph::on_size_request(Gtk::Requisition* requisition)
 }
 
 void
-FFTGraph::on_size_allocate(Gtk::Allocation& alloc)
+FFTGraph::on_size_allocate(Gtk::Allocation & alloc)
 {
        width = alloc.get_width();
        height = alloc.get_height();