projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbd3685
)
set the background brush to the window's background colour
author
Robin Dunn
<robin@alldunn.com>
Tue, 27 Nov 2001 06:59:21 +0000
(06:59 +0000)
committer
Robin 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
patch
|
blob
|
blame
|
history
diff --git
a/contrib/src/ogl/canvas.cpp
b/contrib/src/ogl/canvas.cpp
index aa04b2d01caf76d019063087fe79fb4b3067b6dc..51ed0498e7610bd3f0e27ec695cd74e9d9c1d7cd 100644
(file)
--- 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)