Skip to content

Commit

Permalink
* fix photos bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lxowalle committed Dec 5, 2024
1 parent a7e1233 commit 4038e5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion projects/app_photos/main/app/ui_event_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions projects/app_photos/main/app/ui_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4038e5d

Please sign in to comment.