Centre clock text on visible characters instead of : character
am: 45a7644004
Change-Id: I8cf50fd314442a1e42a4cdd4c3f058d680c531dd
This commit is contained in:
@@ -610,9 +610,10 @@ void BootAnimation::drawClock(const Font& font, const int xPos, const int yPos)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char* out = timeBuff[0] == ' ' ? &timeBuff[1] : &timeBuff[0];
|
||||||
int x = xPos;
|
int x = xPos;
|
||||||
int y = yPos;
|
int y = yPos;
|
||||||
drawText(timeBuff, font, false, &x, &y);
|
drawText(out, font, false, &x, &y);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BootAnimation::parseAnimationDesc(Animation& animation)
|
bool BootAnimation::parseAnimationDesc(Animation& animation)
|
||||||
|
|||||||
Reference in New Issue
Block a user