Centre clock text on visible characters instead of : character am: 45a7644004 am: 04f17be3e6

am: e2ca6b465e

Change-Id: If3edabead7835e9949f1d1601cbe7cb59c0bbc4c
This commit is contained in:
Damien Bargiacchi
2016-12-06 18:47:46 +00:00
committed by android-build-merger

View File

@@ -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)