diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-05-12 04:18:02 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-05-12 04:18:02 (GMT) |
| commit | 6e9eafeba44fd0e698cf288704a5eb2fc6bd76aa (patch) | |
| tree | 7d98fb3cbcaa05cf02585481c8e822005093c41f /src/displayapp/screens/Error.cpp | |
| parent | 6c3268c24be4555b68d4fd4e4bf488d5fce1369c (diff) | |
Use nullptr when aligning relative to parent
Diffstat (limited to 'src/displayapp/screens/Error.cpp')
| -rw-r--r-- | src/displayapp/screens/Error.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/Error.cpp b/src/displayapp/screens/Error.cpp index 1dbc344..d546d61 100644 --- a/src/displayapp/screens/Error.cpp +++ b/src/displayapp/screens/Error.cpp @@ -36,7 +36,7 @@ Error::Error(Pinetime::Applications::DisplayApp* app, System::BootErrors error) btnOk->user_data = this; lv_obj_set_event_cb(btnOk, ButtonEventCallback); lv_obj_set_size(btnOk, LV_HOR_RES, 50); - lv_obj_align(btnOk, lv_scr_act(), LV_ALIGN_IN_BOTTOM_MID, 0, 0); + lv_obj_align(btnOk, nullptr, LV_ALIGN_IN_BOTTOM_MID, 0, 0); lv_obj_set_style_local_value_str(btnOk, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, "Proceed"); lv_obj_set_style_local_bg_color(btnOk, LV_BTN_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_ORANGE); } |
