]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/ogl/canvas.cpp
wxX11:
[wxWidgets.git] / contrib / src / ogl / canvas.cpp
index aa04b2d01caf76d019063087fe79fb4b3067b6dc..51ed0498e7610bd3f0e27ec695cd74e9d9c1d7cd 100644 (file)
@@ -92,10 +92,11 @@ void wxShapeCanvas::OnPaint(wxPaintEvent& event)
 
     PrepareDC(dc);
 
 
     PrepareDC(dc);
 
+    dc.SetBackground(wxBrush(GetBackgroundColour(), wxSOLID));
     dc.Clear();
 
     dc.Clear();
 
-       if (GetDiagram())
-               GetDiagram()->Redraw(dc);
+    if (GetDiagram())
+        GetDiagram()->Redraw(dc);
 }
 
 void wxShapeCanvas::OnMouseEvent(wxMouseEvent& event)
 }
 
 void wxShapeCanvas::OnMouseEvent(wxMouseEvent& event)