diff options
author | Damien Bargiacchi <drb@google.com> | 2016-12-06 18:32:48 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-12-06 18:32:48 +0000 |
commit | 04f17be3e6a6b8594a05d9e4828a40fbb20cda75 (patch) | |
tree | 8957e10a9131e832d4d783a1df126a8675e04b71 /cmds/bootanimation/BootAnimation.cpp | |
parent | 99db203f2942381b8c7765679bb0d44dbe0ec952 (diff) | |
parent | 45a764400485fb6fb9b0d3566e24feac446e616c (diff) |
Centre clock text on visible characters instead of : character
am: 45a7644004
Change-Id: Ibb152f2217297ab0b0aa1ec622e59ae8ae815d59
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 5fe8ba06f536..9cfef47b2ea1 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -611,9 +611,10 @@ void BootAnimation::drawClock(const Font& font, const int xPos, const int yPos) return; } + char* out = timeBuff[0] == ' ' ? &timeBuff[1] : &timeBuff[0]; int x = xPos; int y = yPos; - drawText(timeBuff, font, false, &x, &y); + drawText(out, font, false, &x, &y); } bool BootAnimation::parseAnimationDesc(Animation& animation) |