commit | f4b6628e5084bf317eab5326c51cbecb8fabdc45 | [log] [tgz] |
---|---|---|
author | Travis Geiselbrecht <travisg@google.com> | Tue Apr 24 14:14:55 2012 -0700 |
committer | Travis Geiselbrecht <travisg@google.com> | Tue Apr 24 14:14:55 2012 -0700 |
tree | 192b53b1e8acf2ccaa56f15d95270658e4a934aa | |
parent | 5c84720322afaae4f4a7e0ea6ad71c309df7eb80 [diff] [blame] |
BootAnimation: fix bug to delay the appropriate amount of time per frame Change-Id: I300b67a97a9a685cec59df12d8d605c2b0b49180
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 @@ 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); }