FS#8995 by Mark Ganson fixing the display of am/pm for the digital clock mode

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17526 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2008-05-15 20:16:38 +00:00
parent 1ea884b531
commit 4840682e25
2 changed files with 2 additions and 1 deletions

View file

@ -55,7 +55,7 @@ void digital_clock_draw(struct screen* display,
buffer_printf(buffer, buffer_pos, "%c", display_colon?':':' ');
buffer_printf(buffer, buffer_pos, "%02d", time->minute);
if(settings->general.hour_format==H12){
if(time->hour>12){
if(time->hour>=12){
buffer_printf(buffer, buffer_pos, "P");/* PM */
}else{
buffer_printf(buffer, buffer_pos, "A");/* AM */

View file

@ -389,6 +389,7 @@ Tomasz Wasilczyk
Kenjiro Arai
John Kaminar
Joris Goosen
Mark Ganson
The libmad team