summaryrefslogtreecommitdiff
path: root/apps/bookmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/bookmark.c')
-rw-r--r--apps/bookmark.c34
1 files changed, 30 insertions, 4 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c
index aa03004a35..7cc11ac0c3 100644
--- a/apps/bookmark.c
+++ b/apps/bookmark.c
@@ -849,10 +849,22 @@ static void display_bookmark(char* bookmark,
849 lcd_puts_scroll(0, 2, global_temp_buffer); 849 lcd_puts_scroll(0, 2, global_temp_buffer);
850 850
851 /* elapsed time*/ 851 /* elapsed time*/
852 snprintf(global_temp_buffer, sizeof(global_temp_buffer), "%s: %d:%02d", 852 if ( ms < 3600000 )
853 {
854 snprintf(global_temp_buffer, sizeof(global_temp_buffer), "%s: %d:%02d",
855 str(LANG_BOOKMARK_SELECT_TIME_TEXT),
856 ms / 60000,
857 ms % 60000 / 1000);
858 }
859 else
860 {
861 snprintf(global_temp_buffer, sizeof(global_temp_buffer),
862 "%s: %d:%02d:%02d",
853 str(LANG_BOOKMARK_SELECT_TIME_TEXT), 863 str(LANG_BOOKMARK_SELECT_TIME_TEXT),
854 ms / 60000, 864 ms / 3600000,
865 ms % 3600000 / 60000,
855 ms % 60000 / 1000); 866 ms % 60000 / 1000);
867 }
856 lcd_puts_scroll(0, 3, global_temp_buffer); 868 lcd_puts_scroll(0, 3, global_temp_buffer);
857 869
858 /* commands */ 870 /* commands */
@@ -868,12 +880,26 @@ static void display_bookmark(char* bookmark,
868 dot=NULL; 880 dot=NULL;
869 if (dot) 881 if (dot)
870 *dot='\0'; 882 *dot='\0';
871 snprintf(global_temp_buffer, sizeof(global_temp_buffer), 883 if ( ms < 3600000 )
872 "%2d, %d:%02d, %s,", 884 {
885 snprintf(global_temp_buffer, sizeof(global_temp_buffer),
886 "%2d, %d:%02d, %s,",
887 (bookmark_count+1),
888 ms / 60000,
889 ms % 60000 / 1000,
890 MP3_file_name);
891 }
892 else
893 {
894 snprintf(global_temp_buffer, sizeof(global_temp_buffer),
895 "%2d, %d:%02d:%02d, %s,",
873 (bookmark_count+1), 896 (bookmark_count+1),
874 ms / 60000, 897 ms / 60000,
898 ms % 3600000 / 60000,
875 ms % 60000 / 1000, 899 ms % 60000 / 1000,
876 MP3_file_name); 900 MP3_file_name);
901 }
902
877 status_draw(false); 903 status_draw(false);
878 lcd_puts_scroll(0,0,global_temp_buffer); 904 lcd_puts_scroll(0,0,global_temp_buffer);
879 lcd_puts(0,1,str(LANG_RESUME_CONFIRM_PLAYER)); 905 lcd_puts(0,1,str(LANG_RESUME_CONFIRM_PLAYER));