diff options
author | Damien Bargiacchi <drb@google.com> | 2016-12-05 18:02:18 -0800 |
---|---|---|
committer | Damien Bargiacchi <drb@google.com> | 2016-12-05 18:02:18 -0800 |
commit | 45a764400485fb6fb9b0d3566e24feac446e616c (patch) | |
tree | c90524dbb24e28ed361d4d2ec5cd1d3ebfb92283 /cmds/bootanimation/BootAnimation.cpp | |
parent | 5b64f51a1c5ddf809f504028944aff823ea6f114 (diff) |
Centre clock text on visible characters instead of : character
Bug: 33340845
Change-Id: I235ad7c6aafc62daa55242f81df2d076f27c56df
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 a893ec8b862b..10fabcfb735f 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -610,9 +610,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) |