Correct the slight misalignment of the clock (FS#10334 by Andre Lupa)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21489 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
388e31cb96
commit
8b5d32f556
2 changed files with 3 additions and 2 deletions
|
@ -176,13 +176,13 @@ static void draw_timedate(struct viewport *vp, struct screen *display)
|
|||
|
||||
if (valid_time(tm))
|
||||
{
|
||||
snprintf(time, 16, "%02d:%02d:%02d %s",
|
||||
snprintf(time, 16, "%02d:%02d:%02d%s",
|
||||
global_settings.timeformat == 0 ? tm->tm_hour :
|
||||
((tm->tm_hour + 11) % 12) + 1,
|
||||
tm->tm_min,
|
||||
tm->tm_sec,
|
||||
global_settings.timeformat == 0 ? "" :
|
||||
tm->tm_hour>11 ? "P" : "A");
|
||||
tm->tm_hour>11 ? " P" : " A");
|
||||
snprintf(date, 16, "%s %d %d",
|
||||
str(LANG_MONTH_JANUARY + tm->tm_mon),
|
||||
tm->tm_mday,
|
||||
|
|
|
@ -475,6 +475,7 @@ Jeffrey Goode
|
|||
Raafat Akkad
|
||||
Michaël Burtin
|
||||
Davide Quarta
|
||||
Andre Lupa
|
||||
|
||||
The libmad team
|
||||
The wavpack team
|
||||
|
|
Loading…
Reference in a new issue