diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-17 17:09:42 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-17 17:09:42 +0000 |
| commit | e729c3bd175e4fa47287fec9955eb06cff4840d9 (patch) | |
| tree | 304dcb9a1240a6ed8f804d6915f21b4f893f595e | |
| parent | 52cf594bedfef21f8dcee83b445d5f1630e1575a (diff) | |
Stop flickering of viewer on Windows.
| -rw-r--r-- | src/wx/film_viewer.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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<Film> 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); |
