diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-25 21:13:49 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-25 21:13:49 +0000 |
| commit | b2ebae40e3dbfdf535ac7326966aa00ae3738ddb (patch) | |
| tree | 77b7ad8176179478033d72a30a74c4d633fbb94f /src | |
| parent | 2eb98dd87bb359ae333247af55b650fced7f6311 (diff) | |
Maybe de-flicker the audio display a bit on windows.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/audio_plot.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc index cccdaed34..8e7b3f9f5 100644 --- a/src/wx/audio_plot.cc +++ b/src/wx/audio_plot.cc @@ -39,6 +39,11 @@ AudioPlot::AudioPlot (wxWindow* parent) : wxPanel (parent) , _gain (0) { + SetDoubleBuffered (true); +#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9 + SetBackgroundStyle (wxBG_STYLE_PAINT); +#endif + for (int i = 0; i < MAX_AUDIO_CHANNELS; ++i) { _channel_visible[i] = false; } |
