fix(benchmark): remove redundant string for the small screens (#3335)
* fix(benchmark): remove redundant string for the small screens (i.e. <320 in width) * remove tail white-spaces
This commit is contained in:
@@ -875,13 +875,13 @@ static void report_cb(lv_timer_t * timer)
|
||||
}
|
||||
|
||||
if(opa_mode) {
|
||||
lv_label_set_text_fmt(subtitle, "Result of \"%s\": %"LV_PRId32" FPS", scenes[scene_act].name,
|
||||
lv_label_set_text_fmt(subtitle, "Result : %"LV_PRId32" FPS",
|
||||
scenes[scene_act].fps_normal);
|
||||
LV_LOG("Result of \"%s\": %"LV_PRId32" FPS", scenes[scene_act].name,
|
||||
scenes[scene_act].fps_normal);
|
||||
}
|
||||
else if(scene_act > 0) {
|
||||
lv_label_set_text_fmt(subtitle, "Result of \"%s + opa\": %"LV_PRId32" FPS", scenes[scene_act - 1].name,
|
||||
lv_label_set_text_fmt(subtitle, "Result : %"LV_PRId32" FPS",
|
||||
scenes[scene_act - 1].fps_opa);
|
||||
LV_LOG("Result of \"%s + opa\": %"LV_PRId32" FPS", scenes[scene_act - 1].name,
|
||||
scenes[scene_act - 1].fps_opa);
|
||||
@@ -906,19 +906,7 @@ void lv_demo_benchmark_run_scene(int_fast16_t scene_no)
|
||||
if(scenes[scene_act].create_cb) {
|
||||
lv_label_set_text_fmt(title, "%"LV_PRId32"/%d: %s%s", scene_act * 2 + (opa_mode ? 1 : 0), (int)(dimof(scenes) * 2) - 2,
|
||||
scenes[scene_act].name, opa_mode ? " + opa" : "");
|
||||
if(opa_mode) {
|
||||
lv_label_set_text_fmt(subtitle, "Result of \"%s\": %"LV_PRId32" FPS", scenes[scene_act].name,
|
||||
scenes[scene_act].fps_normal);
|
||||
}
|
||||
else {
|
||||
if(scene_act > 0) {
|
||||
lv_label_set_text_fmt(subtitle, "Result of \"%s + opa\": %"LV_PRId32" FPS", scenes[scene_act - 1].name,
|
||||
scenes[scene_act - 1].fps_opa);
|
||||
}
|
||||
else {
|
||||
lv_label_set_text(subtitle, "");
|
||||
}
|
||||
}
|
||||
lv_label_set_text(subtitle, "");
|
||||
|
||||
rnd_reset();
|
||||
scenes[scene_act].create_cb();
|
||||
|
||||
Reference in New Issue
Block a user