summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
authorDamien Bargiacchi <drb@google.com>2016-12-06 18:47:46 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-12-06 18:47:46 +0000
commit53dd8b80a501f9bdb2d5db113417a3fede4e9db7 (patch)
treea042718c24778c4a7923296fa2cf15ee31d4b253 /cmds/bootanimation/BootAnimation.cpp
parent48829f90d6b60bb08a14d3b2aa12d8422f3aafce (diff)
parente2ca6b465eb20a9a4c39bfa9906295c5508309b1 (diff)
Centre clock text on visible characters instead of : character am: 45a7644004 am: 04f17be3e6
am: e2ca6b465e Change-Id: If3edabead7835e9949f1d1601cbe7cb59c0bbc4c
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 7967e2a8da87..9fad7bfd4038 100644
--- a/cmds/bootanimation/BootAnimation.cpp
+++ b/cmds/bootanimation/BootAnimation.cpp
@@ -608,9 +608,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)