summaryrefslogtreecommitdiffstats
path: root/cmds/bootanimation
diff options
context:
space:
mode:
authorTravis Geiselbrecht <travisg@google.com>2012-04-24 14:23:25 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-04-24 14:23:25 -0700
commitfd135bc809589d4cadcdbcc7ececaf2d9d0969cf (patch)
tree6605529aca5a347b7cc728b6af89d5c9e9671aac /cmds/bootanimation
parent4961295d19e27dd0854f2b07ae126f79ce935c8c (diff)
parentf4b6628e5084bf317eab5326c51cbecb8fabdc45 (diff)
downloadframeworks_base-fd135bc809589d4cadcdbcc7ececaf2d9d0969cf.zip
frameworks_base-fd135bc809589d4cadcdbcc7ececaf2d9d0969cf.tar.gz
frameworks_base-fd135bc809589d4cadcdbcc7ececaf2d9d0969cf.tar.bz2
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
Diffstat (limited to 'cmds/bootanimation')
-rw-r--r--cmds/bootanimation/BootAnimation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp
index 0ab6aa3..c0fb06f 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);
}