summaryrefslogtreecommitdiff
path: root/src/wx/audio_plot.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-02-26 11:55:01 +0000
committerCarl Hetherington <cth@carlh.net>2014-02-26 11:55:01 +0000
commite52d78a0ebf4852c56bcf4119ed7d4c1d0d9b8ff (patch)
treea8d01d41579cd59031c42f6ef4f3ba2753dc08f1 /src/wx/audio_plot.cc
parent075ee0f7766c9c5bdd0ed3957d1cbac91ae11d53 (diff)
Fix audio analysis crash introduced when increasing MAX_AUDIO_CHANNELS.
Diffstat (limited to 'src/wx/audio_plot.cc')
-rw-r--r--src/wx/audio_plot.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc
index fd2619255..941566491 100644
--- a/src/wx/audio_plot.cc
+++ b/src/wx/audio_plot.cc
@@ -59,7 +59,13 @@ AudioPlot::AudioPlot (wxWindow* parent)
_colours.push_back (wxColour ( 0, 255, 0));
_colours.push_back (wxColour (139, 0, 204));
_colours.push_back (wxColour ( 0, 0, 255));
- _colours.push_back (wxColour (100, 100, 100));
+ _colours.push_back (wxColour ( 0, 139, 0));
+ _colours.push_back (wxColour ( 0, 0, 139));
+ _colours.push_back (wxColour (255, 255, 0));
+
+#if MAX_AUDIO_CHANNELS != 8
+#warning AudioPlot::AudioPlot is expecting the wrong MAX_AUDIO_CHANNELS
+#endif
Bind (wxEVT_PAINT, boost::bind (&AudioPlot::paint, this));