X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6528a7f14507ed235ab087d63e3a0be68ea9b1b8..c753eb9269d1e6c99b80a2d782ce49d9864ac1da:/src/common/wincmn.cpp?ds=sidebyside diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 8d3fa0af2c..8a0ae4f54f 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -154,7 +154,7 @@ wxWindowBase::wxWindowBase() m_exStyle = m_windowStyle = 0; - m_backgroundStyle = wxBG_STYLE_SYSTEM; + m_backgroundStyle = wxBG_STYLE_ERASE; #if wxUSE_CONSTRAINTS // no constraints whatsoever @@ -1333,8 +1333,6 @@ bool wxWindowBase::SetBackgroundColour( const wxColour &colour ) return false; m_hasBgCol = colour.IsOk(); - if ( m_backgroundStyle != wxBG_STYLE_CUSTOM ) - m_backgroundStyle = m_hasBgCol ? wxBG_STYLE_COLOUR : wxBG_STYLE_SYSTEM; m_inheritBgCol = m_hasBgCol; m_backgroundColour = colour;