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