Initialize m_hintFadeAmt in a more logical way

No changes, just don't make the code a bit more clear.
This commit is contained in:
Vadim Zeitlin 2023-12-24 16:14:15 +01:00
parent 787fd98142
commit 48982e5aa4

View file

@ -3311,13 +3311,15 @@ void wxAuiManager::ShowHint(const wxRect& rect)
return;
m_lastHint = rect;
m_hintFadeAmt = m_hintFadeMax;
// Decide if we want to fade in the hint and set it to the end value if
// we don't.
if ((m_flags & wxAUI_MGR_HINT_FADE)
&& !((m_flags & wxAUI_MGR_VENETIAN_BLINDS_HINT) &&
(m_flags & wxAUI_MGR_NO_VENETIAN_BLINDS_FADE))
)
m_hintFadeAmt = 0;
else
m_hintFadeAmt = m_hintFadeMax;
m_hintWnd->SetSize(rect);
m_hintWnd->SetTransparent(m_hintFadeAmt);