BootAnimation: fix bug to delay the appropriate amount of time per frame
Change-Id: I300b67a97a9a685cec59df12d8d605c2b0b49180
This commit is contained in:
@@ -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