Searched refs:real_option_cnt (Results 1 – 1 of 1) sorted by relevance
164 uint32_t real_option_cnt = roller->option_cnt / LV_ROLLER_INF_PAGES; in lv_roller_set_selected() local165 uint16_t current_page = roller->sel_opt_id / real_option_cnt; in lv_roller_set_selected()168 if(sel_opt < real_option_cnt) { in lv_roller_set_selected()169 uint16_t act_opt = roller->sel_opt_id - current_page * real_option_cnt; in lv_roller_set_selected()172 if(LV_ABS((int16_t)act_opt - sel_opt) > real_option_cnt / 2) { in lv_roller_set_selected()173 if(act_opt > sel_opt) sel_opt_signed += real_option_cnt; in lv_roller_set_selected()174 else sel_opt_signed -= real_option_cnt; in lv_roller_set_selected()176 sel_opt = sel_opt_signed + real_option_cnt * current_page; in lv_roller_set_selected()