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:
Vadim Zeitlin
2018-10-06 16:12:48 +02:00
parent 24b5e256df
commit 382404f0a7
4 changed files with 14 additions and 21 deletions

View File

@@ -402,7 +402,6 @@ void wxSVGFileDCImpl::Init(const wxString &filename, int Width, int Height,
m_backgroundBrush = *wxTRANSPARENT_BRUSH;
m_textForegroundColour = *wxBLACK;
m_textBackgroundColour = *wxWHITE;
m_colour = wxColourDisplay();
m_pen = *wxBLACK_PEN;
m_font = *wxNORMAL_FONT;