aboutsummaryrefslogtreecommitdiff
path: root/src/core/lv_obj_style.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/lv_obj_style.c')
-rw-r--r--src/core/lv_obj_style.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lv_obj_style.c b/src/core/lv_obj_style.c
index 267d1138d..88241d373 100644
--- a/src/core/lv_obj_style.c
+++ b/src/core/lv_obj_style.c
@@ -532,8 +532,8 @@ void _lv_obj_style_create_transition(lv_obj_t * obj, lv_part_t part, lv_state_t
if(tr_dsc->prop == LV_STYLE_RADIUS) {
if(v1.num == LV_RADIUS_CIRCLE || v2.num == LV_RADIUS_CIRCLE) {
- lv_coord_t whalf = lv_obj_get_width(obj) / 2;
- lv_coord_t hhalf = lv_obj_get_height(obj) / 2;
+ int32_t whalf = lv_obj_get_width(obj) / 2;
+ int32_t hhalf = lv_obj_get_height(obj) / 2;
if(v1.num == LV_RADIUS_CIRCLE) v1.num = LV_MIN(whalf + 1, hhalf + 1);
if(v2.num == LV_RADIUS_CIRCLE) v2.num = LV_MIN(whalf + 1, hhalf + 1);
}