Maybe de-flicker the audio display a bit on windows.
authorCarl Hetherington <cth@carlh.net>
Mon, 25 Feb 2013 21:13:49 +0000 (21:13 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 25 Feb 2013 21:13:49 +0000 (21:13 +0000)
src/wx/audio_plot.cc

index cccdaed3402611a09f10a8020f9044ab1c3df203..8e7b3f9f5116da3b305f47bcaaf290839c6e739a 100644 (file)
@@ -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;
        }