Multiple animation optimization and xwayland wine fixes
This commit is contained in:
parent
34ad837fd9
commit
206360177f
10 changed files with 96 additions and 15 deletions
|
|
@ -12,8 +12,6 @@ void CAnimatedVariable::create(ANIMATEDVARTYPE type, SAnimationPropertyConfig* p
|
|||
m_pConfig = pAnimConfig;
|
||||
m_pWindow = pWindow;
|
||||
|
||||
g_pAnimationManager->m_lAnimatedVariables.push_back(this);
|
||||
|
||||
m_bDummy = false;
|
||||
}
|
||||
|
||||
|
|
@ -58,6 +56,10 @@ void CAnimatedVariable::unregister() {
|
|||
g_pAnimationManager->m_lAnimatedVariables.remove(this);
|
||||
}
|
||||
|
||||
void CAnimatedVariable::registerVar() {
|
||||
g_pAnimationManager->m_lAnimatedVariables.push_back(this);
|
||||
}
|
||||
|
||||
int CAnimatedVariable::getDurationLeftMs() {
|
||||
return std::max((int)(m_pConfig->pValues->internalSpeed * 100) - (int)std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - animationBegin).count(), 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue