fix warnings
This commit is contained in:
@@ -14,7 +14,6 @@ static void event_cb(lv_event_t * e)
|
|||||||
if(code == LV_EVENT_VALUE_CHANGED) {
|
if(code == LV_EVENT_VALUE_CHANGED) {
|
||||||
last_id = lv_chart_get_pressed_point(obj);
|
last_id = lv_chart_get_pressed_point(obj);
|
||||||
if(last_id != LV_CHART_POINT_NONE) {
|
if(last_id != LV_CHART_POINT_NONE) {
|
||||||
lv_point_t p;
|
|
||||||
lv_chart_set_cursor_point(obj, cursor, NULL, last_id);
|
lv_chart_set_cursor_point(obj, cursor, NULL, last_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,7 +132,8 @@ void lv_tabview_set_act(lv_obj_t * obj, uint32_t id, lv_anim_enable_t anim_en)
|
|||||||
if(lv_obj_get_style_base_dir(obj, LV_PART_MAIN) != LV_BASE_DIR_RTL) {
|
if(lv_obj_get_style_base_dir(obj, LV_PART_MAIN) != LV_BASE_DIR_RTL) {
|
||||||
lv_obj_scroll_to_x(cont, id * (gap + w), anim_en);
|
lv_obj_scroll_to_x(cont, id * (gap + w), anim_en);
|
||||||
} else {
|
} else {
|
||||||
lv_obj_scroll_to_x(cont, (gap + w) * (-id - 1), anim_en);
|
int32_t id_rtl = (int32_t) -id - 1;
|
||||||
|
lv_obj_scroll_to_x(cont, (gap + w) * id_rtl, anim_en);
|
||||||
}
|
}
|
||||||
|
|
||||||
lv_obj_t * btns = lv_tabview_get_tab_btns(obj);
|
lv_obj_t * btns = lv_tabview_get_tab_btns(obj);
|
||||||
|
|||||||
Reference in New Issue
Block a user