Stop using wxColourDisplay() inside wxWidgets code
This function always returns true in practice and it's completely useless to call it during each wxDC object construction, especially because wxDC::m_colour itself is not used anywhere.
This commit is contained in:
@@ -318,7 +318,7 @@ wxIMPLEMENT_ABSTRACT_CLASS(wxDCImpl, wxObject);
|
||||
|
||||
wxDCImpl::wxDCImpl( wxDC *owner )
|
||||
: m_window(NULL)
|
||||
, m_colour(wxColourDisplay())
|
||||
, m_colour(true)
|
||||
, m_ok(true)
|
||||
, m_clipping(false)
|
||||
, m_isInteractive(0)
|
||||
|
||||
Reference in New Issue
Block a user