Merge "Centre clock text on visible characters instead of : character" into cw-f-dev

This commit is contained in:
TreeHugger Robot
2016-12-06 18:25:27 +00:00
committed by Android (Google) Code Review

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)