]> git.saurik.com Git - wxWidgets.git/commitdiff
set the background brush to the window's background colour
authorRobin Dunn <robin@alldunn.com>
Tue, 27 Nov 2001 06:59:21 +0000 (06:59 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 27 Nov 2001 06:59:21 +0000 (06:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/src/ogl/canvas.cpp

index aa04b2d01caf76d019063087fe79fb4b3067b6dc..51ed0498e7610bd3f0e27ec695cd74e9d9c1d7cd 100644 (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)