git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31301
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( m_peer && m_peer->Ok() )
{
m_peer->SetValue( GetValue() ) ;
if ( m_peer && m_peer->Ok() )
{
m_peer->SetValue( GetValue() ) ;
+ // we turn off animation in the unnecessary situations as this is eating a lot of CPU otherwise
Boolean shouldAnimate = ( GetValue() > 0 && GetValue() < GetRange() ) ;
if ( m_peer->GetData<Boolean>( kControlEntireControl , kControlProgressBarAnimatingTag ) != shouldAnimate )
{
Boolean shouldAnimate = ( GetValue() > 0 && GetValue() < GetRange() ) ;
if ( m_peer->GetData<Boolean>( kControlEntireControl , kControlProgressBarAnimatingTag ) != shouldAnimate )
{