Fix SetBackgroundColour() for wxSplitterWindow.

Background colour was ignored even if wxSP_3DSASH was not included in the window flags. The OSX renderer already used the background colour.
This commit is contained in:
Tobias Taschner
2015-09-04 11:09:00 +02:00
parent 2fbd2a7800
commit 804f83b13a

View File

@@ -576,11 +576,11 @@ wxRendererGeneric::DrawSplitterSash(wxWindow *win,
}
dc.SetPen(*wxTRANSPARENT_PEN);
dc.SetBrush(wxBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)));
if ( win->HasFlag(wxSP_3DSASH) )
{
// Draw the 3D sash
dc.SetBrush(wxBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)));
dc.DrawRectangle(position + 2, 0, 3, h);
dc.SetPen(m_penLightGrey);
@@ -598,6 +598,7 @@ wxRendererGeneric::DrawSplitterSash(wxWindow *win,
else
{
// Draw a flat sash
dc.SetBrush(wxBrush(win->GetBackgroundColour()));
dc.DrawRectangle(position, 0, 3, h);
}
}