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:
Travis Geiselbrecht
2012-04-24 14:23:25 -07:00
committed by Android Git Automerger

View File

@@ -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);
}