From: Robin Dunn Date: Tue, 27 Nov 2001 06:59:21 +0000 (+0000) Subject: set the background brush to the window's background colour X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ebe2507564906b16deba79c3b1cd0fc8526164ed 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 --- diff --git a/contrib/src/ogl/canvas.cpp b/contrib/src/ogl/canvas.cpp index aa04b2d01c..51ed0498e7 100644 --- a/contrib/src/ogl/canvas.cpp +++ b/contrib/src/ogl/canvas.cpp @@ -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)