summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
authorDamien Bargiacchi <drb@google.com>2016-12-06 18:32:48 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-12-06 18:32:48 +0000
commit04f17be3e6a6b8594a05d9e4828a40fbb20cda75 (patch)
tree8957e10a9131e832d4d783a1df126a8675e04b71 /cmds/bootanimation/BootAnimation.cpp
parent99db203f2942381b8c7765679bb0d44dbe0ec952 (diff)
parent45a764400485fb6fb9b0d3566e24feac446e616c (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.cpp3
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)