diff --git a/demos/life/life.cpp b/demos/life/life.cpp index bb19df3cd5..0f864f8b00 100644 --- a/demos/life/life.cpp +++ b/demos/life/life.cpp @@ -724,6 +724,7 @@ LifeCanvas::LifeCanvas(wxWindow *parent, Life *life, bool interactive) // reduce flicker if wxEVT_ERASE_BACKGROUND is not available SetBackgroundColour(*wxWHITE); + SetBackgroundStyle(wxBG_STYLE_PAINT); } LifeCanvas::~LifeCanvas()