From ebe2507564906b16deba79c3b1cd0fc8526164ed Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 27 Nov 2001 06:59:21 +0000 Subject: [PATCH] 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 --- contrib/src/ogl/canvas.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.50.0