summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2016-12-06 18:25:27 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-12-06 18:25:29 +0000
commitad7c7acad6536973dc2d089e2ba1c4ebc0a65efb (patch)
tree7b6439baa765ecbf06dd0c1251455d1edc7ab039 /cmds/bootanimation/BootAnimation.cpp
parent3601d3c2399ae051aeed0b5ed9e2dd9327b470ef (diff)
parent45a764400485fb6fb9b0d3566e24feac446e616c (diff)
Merge "Centre clock text on visible characters instead of : character" into cw-f-dev
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 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)