diff options
author | David Robillard <d@drobilla.net> | 2006-08-01 21:33:25 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-08-01 21:33:25 +0000 |
commit | 959438031cf5fe15fef1145c6e5970fdba4e2f35 (patch) | |
tree | e4883f0281d492e45c1a973eac0fc86979d8ac23 /gtk2_ardour/fft_graph.cc | |
parent | 14f461218121d2b0d68158d7061cbaa375d827e8 (diff) |
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
Diffstat (limited to 'gtk2_ardour/fft_graph.cc')
-rw-r--r-- | gtk2_ardour/fft_graph.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<Gdk::Window> 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); |