summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/Paddle.cpp
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-05-12 06:58:44 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-05-12 06:58:44 (GMT)
commit948661c9f650d59aa05ad93855703dab86603673 (patch)
treed4942017b5aaddde1ddfc3bfd96a34464d68106e /src/displayapp/screens/Paddle.cpp
parent2643cda7fee510462efc4447f3ca41f568ae8bce (diff)
Use ..set_text_static when statically-allocated strings are used
Diffstat (limited to 'src/displayapp/screens/Paddle.cpp')
-rw-r--r--src/displayapp/screens/Paddle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/Paddle.cpp b/src/displayapp/screens/Paddle.cpp
index 608eb64..79401ff 100644
--- a/src/displayapp/screens/Paddle.cpp
+++ b/src/displayapp/screens/Paddle.cpp
@@ -17,7 +17,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, &jetbrains_mono_42);
- lv_label_set_text(points, "0000");
+ lv_label_set_text_static(points, "0000");
lv_obj_align(points, lv_scr_act(), LV_ALIGN_IN_TOP_MID, 0, 10);
paddle = lv_obj_create(lv_scr_act(), nullptr);