From 804f83b13a9d159e5e62da0bb253e6b97daca98f Mon Sep 17 00:00:00 2001 From: Tobias Taschner Date: Fri, 4 Sep 2015 11:09:00 +0200 Subject: [PATCH] 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. --- src/generic/renderg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generic/renderg.cpp b/src/generic/renderg.cpp index 8209f5e1ab..5519784724 100644 --- a/src/generic/renderg.cpp +++ b/src/generic/renderg.cpp @@ -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); } }