diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-10-13 23:39:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-10-13 23:39:16 +0100 |
| commit | 0c54ae8d45449b20afda7a3bc006a90ed0c6952a (patch) | |
| tree | 8dda7d1df3bfde7ef8824170e645a094363d47b1 /src/wx/audio_plot.cc | |
| parent | a615ba5e8616b054ab65a0762e09588ae44ff0e6 (diff) | |
Colour axis labels in the audio plot (#835).
Diffstat (limited to 'src/wx/audio_plot.cc')
| -rw-r--r-- | src/wx/audio_plot.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc index c19ba946a..fe031aaac 100644 --- a/src/wx/audio_plot.cc +++ b/src/wx/audio_plot.cc @@ -319,3 +319,13 @@ AudioPlot::get_point (int channel, int point) const return p; } + +/** @param n Channel index. + * @return Colour used by that channel in the plot. + */ +wxColour +AudioPlot::colour (int n) const +{ + DCPOMATIC_ASSERT (n < int(_colours.size())); + return _colours[n]; +} |
