From 959438031cf5fe15fef1145c6e5970fdba4e2f35 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 1 Aug 2006 21:33:25 +0000 Subject: Moved DataType into it's own class (resolved a name clash on ARDOUR::MIDI which was a show stopper for gcc 3.3) Also fixed a few warnings in fft_graph.cc git-svn-id: svn://localhost/ardour2/trunk@739 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/fft_graph.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/fft_graph.cc') diff --git a/gtk2_ardour/fft_graph.cc b/gtk2_ardour/fft_graph.cc index 7c8b4b4095..367dc54b7c 100644 --- a/gtk2_ardour/fft_graph.cc +++ b/gtk2_ardour/fft_graph.cc @@ -234,11 +234,11 @@ FFTGraph::draw_scales(Glib::RefPtr window) while (_logScale[logscale_pos] < position_on_scale) logscale_pos++; - int coord = v_margin + 1.0 + position_on_scale; + int coord = (int)(v_margin + 1.0 + position_on_scale); int SR = 44100; - int rate_at_pos = (double)(SR/2) * (double)logscale_pos / (double)_dataSize; + int rate_at_pos = (int)((double)(SR/2) * (double)logscale_pos / (double)_dataSize); char buf[32]; snprintf(buf,32,"%dhz",rate_at_pos); -- cgit v1.2.3