am f4b6628e: BootAnimation: fix bug to delay the appropriate amount of time per frame
* commit 'f4b6628e5084bf317eab5326c51cbecb8fabdc45': BootAnimation: fix bug to delay the appropriate amount of time per frame
This commit is contained in:
committed by
Android Git Automerger
commit
fd135bc809
@@ -509,7 +509,7 @@ bool BootAnimation::movie()
|
||||
nsecs_t now = systemTime();
|
||||
nsecs_t delay = frameDuration - (now - lastFrame);
|
||||
lastFrame = now;
|
||||
long wait = ns2us(frameDuration);
|
||||
long wait = ns2us(delay);
|
||||
if (wait > 0)
|
||||
usleep(wait);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user