From b2ebae40e3dbfdf535ac7326966aa00ae3738ddb Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 25 Feb 2013 21:13:49 +0000 Subject: [PATCH] Maybe de-flicker the audio display a bit on windows. --- src/wx/audio_plot.cc | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- 2.30.2