summaryrefslogtreecommitdiff
path: root/src/wx/film_viewer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/film_viewer.cc')
-rw-r--r--src/wx/film_viewer.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc
index 2314a7f24..96656ce09 100644
--- a/src/wx/film_viewer.cc
+++ b/src/wx/film_viewer.cc
@@ -56,6 +56,11 @@ FilmViewer::FilmViewer (shared_ptr<Film> f, wxWindow* p)
, _got_frame (false)
, _clear_required (false)
{
+ _panel->SetDoubleBuffered (true);
+#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9
+ _panel->SetBackgroundStyle (wxBG_STYLE_PAINT);
+#endif
+
_v_sizer = new wxBoxSizer (wxVERTICAL);
SetSizer (_v_sizer);