diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-02-26 11:55:01 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-02-26 11:55:01 +0000 |
| commit | e52d78a0ebf4852c56bcf4119ed7d4c1d0d9b8ff (patch) | |
| tree | a8d01d41579cd59031c42f6ef4f3ba2753dc08f1 /src/wx/audio_plot.cc | |
| parent | 075ee0f7766c9c5bdd0ed3957d1cbac91ae11d53 (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.cc | 8 |
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)); |
