diff options
author | Travis Geiselbrecht <travisg@google.com> | 2012-04-24 14:14:55 -0700 |
---|---|---|
committer | Travis Geiselbrecht <travisg@google.com> | 2012-04-24 14:14:55 -0700 |
commit | f4b6628e5084bf317eab5326c51cbecb8fabdc45 (patch) | |
tree | 192b53b1e8acf2ccaa56f15d95270658e4a934aa /cmds/bootanimation | |
parent | 5c84720322afaae4f4a7e0ea6ad71c309df7eb80 (diff) | |
download | frameworks_base-f4b6628e5084bf317eab5326c51cbecb8fabdc45.zip frameworks_base-f4b6628e5084bf317eab5326c51cbecb8fabdc45.tar.gz frameworks_base-f4b6628e5084bf317eab5326c51cbecb8fabdc45.tar.bz2 |
BootAnimation: fix bug to delay the appropriate amount of time per frame
Change-Id: I300b67a97a9a685cec59df12d8d605c2b0b49180
Diffstat (limited to 'cmds/bootanimation')
-rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 154dbb8..00129df 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); } |