diff --git a/samples/drawing/drawing.cpp b/samples/drawing/drawing.cpp index b2996dec99..f8d6585960 100644 --- a/samples/drawing/drawing.cpp +++ b/samples/drawing/drawing.cpp @@ -1788,6 +1788,7 @@ void MyCanvas::Draw(wxDC& pdc) return; } + gdc.SetBackground(wxBrush(GetBackgroundColour(),wxBRUSHSTYLE_SOLID)); gdc.SetGraphicsContext(context); }