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/Paddle.cpp | |
| parent | 786ff1312a8c2afc3d2cf5aab320b6416d727734 (diff) | |
Use nullptr when aligning relative to parent
Diffstat (limited to 'src/displayapp/screens/Paddle.cpp')
| -rw-r--r-- | src/displayapp/screens/Paddle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/Paddle.cpp b/src/displayapp/screens/Paddle.cpp index b2ab503..96a01b7 100644 --- a/src/displayapp/screens/Paddle.cpp +++ b/src/displayapp/screens/Paddle.cpp @@ -18,7 +18,7 @@ Paddle::Paddle(Pinetime::Applications::DisplayApp* app, Pinetime::Components::Li points = lv_label_create(lv_scr_act(), nullptr); lv_obj_set_style_local_text_font(points, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &neofont2); lv_label_set_text_static(points, "0000"); - lv_obj_align(points, lv_scr_act(), LV_ALIGN_IN_TOP_MID, 0, 10); + lv_obj_align(points, nullptr, LV_ALIGN_IN_TOP_MID, 0, 10); paddle = lv_obj_create(lv_scr_act(), nullptr); lv_obj_set_style_local_bg_color(paddle, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_WHITE); |
