diff --git a/projects/app_photos/main/app/ui_event_handler.h b/projects/app_photos/main/app/ui_event_handler.h index 854e848a..3bd1ec5c 100644 --- a/projects/app_photos/main/app/ui_event_handler.h +++ b/projects/app_photos/main/app/ui_event_handler.h @@ -24,7 +24,7 @@ char *ui_get_delete_big_photo_path(void); bool ui_get_touch_show_right_big_photo_flag(void); bool ui_get_touch_show_left_big_photo_flag(void); bool ui_touch_is_video_image_flag(void); -void ui_set_video_bar_s(uint32_t curr_s, uint32_t total_s); +void ui_set_video_bar_s(double curr_s, double total_s); bool ui_get_touch_video_bar_press_flag(void); bool ui_get_touch_video_bar_release_flag(void); double ui_get_video_bar_value(void); diff --git a/projects/app_photos/main/app/ui_screen.c b/projects/app_photos/main/app/ui_screen.c index 6e287333..3b6fc981 100644 --- a/projects/app_photos/main/app/ui_screen.c +++ b/projects/app_photos/main/app/ui_screen.c @@ -1373,11 +1373,11 @@ void ui_all_screen_deinit(void) } } -void ui_set_video_bar_s(uint32_t curr_s, uint32_t total_s) +void ui_set_video_bar_s(double curr_s, double total_s) { if (g_video_bar_label) { lv_label_set_text_fmt(g_video_bar_label, "%.2d:%.2d:%.2d/%.2d:%.2d:%.2d", - curr_s / 3600, (curr_s % 3600) / 60, curr_s % 60, total_s / 3600, (total_s % 3600) / 60, total_s % 60); + (uint32_t)curr_s / 3600, ((uint32_t)curr_s % 3600) / 60, (uint32_t)curr_s % 60, (uint32_t)total_s / 3600, ((uint32_t)total_s % 3600) / 60, (uint32_t)total_s % 60); } if (g_video_bar) {