diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-05-11 20:52:10 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-05-11 20:52:10 (GMT) |
| commit | 1d0023b502563d486a6e8c5d6dffbfdcd4e94c2a (patch) | |
| tree | 0a2f91601b9530624a397bf2fde7aa851c3e639d /src/displayapp/screens/SystemInfo.cpp | |
| parent | 786ff1312a8c2afc3d2cf5aab320b6416d727734 (diff) | |
Use nullptr when aligning relative to parent
Diffstat (limited to 'src/displayapp/screens/SystemInfo.cpp')
| -rw-r--r-- | src/displayapp/screens/SystemInfo.cpp | 8 |
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 |
