Fix oops in previous commit.
[ardour.git] / libs / canvas / wave_view.cc
index a8e4a3f2861516459308bba9545dc3d17259d1f5..553bcdf5d3f94f59d298c3b078cbfc55ba437584 100644 (file)
@@ -176,12 +176,6 @@ WaveView::set_samples_per_pixel (double samples_per_pixel)
        }
 }
 
-static inline double
-image_to_window (double wave_origin, double image_start)
-{
-       return wave_origin + image_start;
-}
-
 static inline double
 window_to_image (double wave_origin, double image_start)
 {
@@ -689,7 +683,7 @@ WaveView::draw_image (Cairo::RefPtr<Cairo::ImageSurface>& image, PeakData* _peak
                color_to_hsv (_fill_color, h, s, v);
                /* change v towards white */
                v *= 1.0 - gradient_depth();
-               Color center = hsv_to_color (h, s, v, a);
+               Color center = hsva_to_color (h, s, v, a);
                color_to_rgba (center, r, g, b, a);
 
                gradient->add_color_stop_rgba (stops[0], r, g, b, a);