diff options
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); } |