Try to reduce audio mapping flicker on Windows.
authorCarl Hetherington <cth@carlh.net>
Wed, 26 Jun 2019 00:38:04 +0000 (01:38 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 27 Jun 2019 22:56:47 +0000 (23:56 +0100)
src/wx/audio_mapping_view.cc

index fa87326..98430da 100644 (file)
@@ -75,6 +75,10 @@ AudioMappingView::AudioMappingView (wxWindow* parent)
        _vertical_scroll = new wxScrollBar (this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSB_VERTICAL);
        _horizontal_scroll = new wxScrollBar (this, wxID_ANY);
 
+#ifndef __WXOSX__
+       SetDoubleBuffered (true);
+#endif
+
        Bind (wxEVT_SIZE, boost::bind(&AudioMappingView::size, this, _1));
        Bind (wxEVT_MENU, boost::bind(&AudioMappingView::off, this), ID_off);
        Bind (wxEVT_MENU, boost::bind(&AudioMappingView::full, this), ID_full);