From: Carl Hetherington Date: Mon, 25 Feb 2013 21:13:49 +0000 (+0000) Subject: Maybe de-flicker the audio display a bit on windows. X-Git-Tag: v2.0.48~1337^2~621 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;ds=inline;h=b2ebae40e3dbfdf535ac7326966aa00ae3738ddb;p=dcpomatic.git Maybe de-flicker the audio display a bit on windows. --- 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; }