fix(demo_music): fix wrong fps print (#4952)
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com> Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
@@ -231,7 +231,7 @@ static void auto_step_cb(lv_timer_t * t)
|
|||||||
lv_obj_set_style_text_font(num, font_large, 0);
|
lv_obj_set_style_text_font(num, font_large, 0);
|
||||||
#if LV_USE_PERF_MONITOR
|
#if LV_USE_PERF_MONITOR
|
||||||
const lv_sysmon_perf_info_t * info = lv_subject_get_pointer(&sysmon_perf.subject);
|
const lv_sysmon_perf_info_t * info = lv_subject_get_pointer(&sysmon_perf.subject);
|
||||||
lv_label_set_text_fmt(num, "%" LV_PRIu32, info->calculated.cpu_avg_total);
|
lv_label_set_text_fmt(num, "%" LV_PRIu32, info->calculated.fps_avg_total);
|
||||||
#endif
|
#endif
|
||||||
lv_obj_align(num, LV_ALIGN_TOP_MID, 0, 120);
|
lv_obj_align(num, LV_ALIGN_TOP_MID, 0, 120);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user