From e729c3bd175e4fa47287fec9955eb06cff4840d9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 17 Dec 2012 17:09:42 +0000 Subject: Stop flickering of viewer on Windows. --- src/wx/film_viewer.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 765bff02f..98f303593 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -52,6 +52,9 @@ FilmViewer::FilmViewer (shared_ptr f, wxWindow* p) , _panel_width (0) , _panel_height (0) { + _panel->SetDoubleBuffered (true); + _panel->SetBackgroundStyle (wxBG_STYLE_PAINT); + wxBoxSizer* v_sizer = new wxBoxSizer (wxVERTICAL); SetSizer (v_sizer); -- cgit v1.2.3