From f4b6628e5084bf317eab5326c51cbecb8fabdc45 Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Tue, 24 Apr 2012 14:14:55 -0700 Subject: BootAnimation: fix bug to delay the appropriate amount of time per frame Change-Id: I300b67a97a9a685cec59df12d8d605c2b0b49180 --- cmds/bootanimation/BootAnimation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds/bootanimation/BootAnimation.cpp') diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 154dbb873575..00129df879f0 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -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); } -- cgit v1.2.3-59-g8ed1b