LLFrameTimer review and resulting changes.
This makes the class API a bit more sane, although only a bit, because I had to leave it working with possibly new code merged in from LL: the API can't really change. I also removed some unused code. While reviewing how LLFrameTimer worked however, I did find a few instances where things where broken: * sFrameDeltaTime wasn't correctly updated (more than once per frame and therefore erratic). This only influenced scrolling speed, but still. * While dragging an inventory item, the scroll arrows of a tab container didn't work (LLTabContainer::handleDragAndDrop). * Map zoom interpolation was broken (it interpolated between A and B, but used the already updated interpolation for A the next frame... (added mCurZoomValInterpolationStart).
This commit is contained in:
committed by
Siana Gearz
parent
7a739f4915
commit
dfa10281ea
@@ -683,8 +683,7 @@ void LLStatusBar::setBalance(S32 balance)
|
||||
|
||||
if( balance != mBalance )
|
||||
{
|
||||
mBalanceTimer->reset();
|
||||
mBalanceTimer->setTimerExpirySec( ICON_TIMER_EXPIRY );
|
||||
mBalanceTimer->reset(ICON_TIMER_EXPIRY);
|
||||
mBalance = balance;
|
||||
}
|
||||
}
|
||||
@@ -728,8 +727,7 @@ void LLStatusBar::setHealth(S32 health)
|
||||
}
|
||||
}
|
||||
|
||||
mHealthTimer->reset();
|
||||
mHealthTimer->setTimerExpirySec( ICON_TIMER_EXPIRY );
|
||||
mHealthTimer->reset(ICON_TIMER_EXPIRY);
|
||||
}
|
||||
|
||||
mHealth = health;
|
||||
|
||||
Reference in New Issue
Block a user