lvgl / lv_demos

Examples, tutorials and applications for the LVGL embedded GUI library
https://lvgl.io
488 stars 366 forks source link

Add animation adapter callback functions to eliminate warnings. #140

Closed cmumford closed 2 years ago

cmumford commented 2 years ago

The lv_anim_set_exec_cb callback accepts a int32_t, but the two callbacks used (lv_img_set_zoom & lv_obj_set_x) both have a 16-bit value parameter. The compiler may handle this OK, but adding adapter functions to eliminate compile-time warnings - and possibly actual issues with some compilers.

kisvegabor commented 2 years ago

Thank you!