Remove unnecessary dynamic cast to wxPseudoTransparentFrame
Just test whether we're using "Venetian blinds" hint directly instead of testing for whether we use wxPseudoTransparentFrame which can be also used for the default transparent hint if transparency is not supported natively. This doesn't change much in practice, but just avoid using dynamic cast unnecessarily.
This commit is contained in:
parent
e8a6f3b732
commit
787fd98142
1 changed files with 1 additions and 1 deletions
|
|
@ -3314,7 +3314,7 @@ void wxAuiManager::ShowHint(const wxRect& rect)
|
|||
m_hintFadeAmt = m_hintFadeMax;
|
||||
|
||||
if ((m_flags & wxAUI_MGR_HINT_FADE)
|
||||
&& !((wxDynamicCast(m_hintWnd, wxPseudoTransparentFrame)) &&
|
||||
&& !((m_flags & wxAUI_MGR_VENETIAN_BLINDS_HINT) &&
|
||||
(m_flags & wxAUI_MGR_NO_VENETIAN_BLINDS_FADE))
|
||||
)
|
||||
m_hintFadeAmt = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue