diff options
author | Gabor Kiss-Vamosi <kisvegabor@gmail.com> | 2023-10-31 19:25:01 +0100 |
---|---|---|
committer | Gabor Kiss-Vamosi <kisvegabor@gmail.com> | 2023-10-31 19:25:01 +0100 |
commit | a5a58e39d2abbb66b57cf27f3c4a1d25f9ac6b3d (patch) | |
tree | 3046130dce1b174fea713d07843b65ce6374dd4b /examples/widgets/obj/lv_example_obj_2.c | |
parent | d456b1cb4da4795e3b2f64ec484f624fa127471d (diff) | |
download | lvgl-a5a58e39d2abbb66b57cf27f3c4a1d25f9ac6b3d.tar.gz lvgl-a5a58e39d2abbb66b57cf27f3c4a1d25f9ac6b3d.zip |
refactor: replace lv_coord_t with int32_t
Diffstat (limited to 'examples/widgets/obj/lv_example_obj_2.c')
-rw-r--r-- | examples/widgets/obj/lv_example_obj_2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/obj/lv_example_obj_2.c b/examples/widgets/obj/lv_example_obj_2.c index ba0cd4b3a..2b084e524 100644 --- a/examples/widgets/obj/lv_example_obj_2.c +++ b/examples/widgets/obj/lv_example_obj_2.c @@ -11,8 +11,8 @@ static void drag_event_handler(lv_event_t * e) lv_point_t vect; lv_indev_get_vect(indev, &vect); - lv_coord_t x = lv_obj_get_x(obj) + vect.x; - lv_coord_t y = lv_obj_get_y(obj) + vect.y; + int32_t x = lv_obj_get_x(obj) + vect.x; + int32_t y = lv_obj_get_y(obj) + vect.y; lv_obj_set_pos(obj, x, y); } |