Centre clock text on visible characters instead of : character

Bug: 33340845
Change-Id: I235ad7c6aafc62daa55242f81df2d076f27c56df
This commit is contained in:
Damien Bargiacchi
2016-12-05 18:02:18 -08:00
parent 5b64f51a1c
commit 45a7644004

View File

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