summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/SystemInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/displayapp/screens/SystemInfo.cpp')
-rw-r--r--src/displayapp/screens/SystemInfo.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/displayapp/screens/SystemInfo.cpp b/src/displayapp/screens/SystemInfo.cpp
index e0138f8..0586877 100644
--- a/src/displayapp/screens/SystemInfo.cpp
+++ b/src/displayapp/screens/SystemInfo.cpp
@@ -92,7 +92,7 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen1() {
__TIME__,
BootloaderVersion::VersionString());
lv_label_set_align(label, LV_LABEL_ALIGN_CENTER);
- lv_obj_align(label, lv_scr_act(), LV_ALIGN_CENTER, 0, 0);
+ lv_obj_align(label, nullptr, LV_ALIGN_CENTER, 0, 0);
return std::make_unique<Screens::Label>(0, 5, app, label);
}
@@ -165,7 +165,7 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen2() {
touchPanel.GetChipId(),
touchPanel.GetVendorId(),
touchPanel.GetFwVersion());
- lv_obj_align(label, lv_scr_act(), LV_ALIGN_CENTER, 0, 0);
+ lv_obj_align(label, nullptr, LV_ALIGN_CENTER, 0, 0);
return std::make_unique<Screens::Label>(1, 5, app, label);
}
@@ -196,7 +196,7 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen3() {
mon.max_used,
mon.frag_pct,
static_cast<int>(mon.free_biggest_size));
- lv_obj_align(label, lv_scr_act(), LV_ALIGN_CENTER, 0, 0);
+ lv_obj_align(label, nullptr, LV_ALIGN_CENTER, 0, 0);
return std::make_unique<Screens::Label>(2, 5, app, label);
}
@@ -274,6 +274,6 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen5() {
"#FFFF00 InfiniTimeOrg/#\n"
"#FFFF00 InfiniTime#");
lv_label_set_align(label, LV_LABEL_ALIGN_CENTER);
- lv_obj_align(label, lv_scr_act(), LV_ALIGN_CENTER, 0, 0);
+ lv_obj_align(label, nullptr, LV_ALIGN_CENTER, 0, 0);
return std::make_unique<Screens::Label>(4, 5, app, label);
} \ No newline at end of file