Replace wxDeprecatedGUIConstants enum values

This commit is contained in:
Maarten Bent
2018-11-25 20:22:35 +01:00
parent 86c49283f5
commit 39ff5b90e5
81 changed files with 257 additions and 256 deletions

View File

@@ -147,7 +147,7 @@ public:
{
// Setting the background colour is not enough, we must also change
// the mode to ensure that it is actually used.
m_dc.SetBackgroundMode(wxSOLID);
m_dc.SetBackgroundMode(wxBRUSHSTYLE_SOLID);
m_dc.SetTextBackground(attr.background);
}
}
@@ -170,7 +170,7 @@ public:
// should actually be made transparent and in this case the
// actual value of background colour doesn't matter but we also
// restore it just in case, see comment in the ctor.
m_dc.SetBackgroundMode(wxTRANSPARENT);
m_dc.SetBackgroundMode(wxBRUSHSTYLE_TRANSPARENT);
background = m_origTextBackground;
}
@@ -260,7 +260,7 @@ public:
const wxSize extent = m_dc.GetTextExtent(text);
// DrawItemText() ignores background color, so render it ourselves
if ( m_dc.GetBackgroundMode() == wxSOLID )
if ( m_dc.GetBackgroundMode() == wxBRUSHSTYLE_SOLID)
{
#if wxUSE_GRAPHICS_CONTEXT
// Prefer to use wxGraphicsContext because it supports alpha channel; fall back to wxDC