set the background brush to the window's background colour

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2001-11-27 06:59:21 +00:00
parent dbd3685cc4
commit ebe2507564

View File

@ -92,10 +92,11 @@ void wxShapeCanvas::OnPaint(wxPaintEvent& event)
PrepareDC(dc);
dc.SetBackground(wxBrush(GetBackgroundColour(), wxSOLID));
dc.Clear();
if (GetDiagram())
GetDiagram()->Redraw(dc);
if (GetDiagram())
GetDiagram()->Redraw(dc);
}
void wxShapeCanvas::OnMouseEvent(wxMouseEvent& event)