cmsis pack monthly update (#3692)

This commit is contained in:
Gabriel Wang
2022-09-19 10:50:33 +01:00
committed by GitHub
parent d3d11361d9
commit c23ff83bda
15 changed files with 81 additions and 49 deletions

View File

@@ -123,7 +123,7 @@ void lv_roller_set_options(lv_obj_t * obj, const char * options, lv_roller_mode_
const lv_font_t * font = lv_obj_get_style_text_font(obj, 0);
lv_coord_t normal_h = roller->option_cnt * (lv_font_get_line_height(font) + lv_obj_get_style_text_letter_space(obj, 0));
roller->inf_page_cnt = LV_CLAMP(3, EXTRA_INF_SIZE / normal_h, 15);
if(!roller->inf_page_cnt & 1) roller->inf_page_cnt++; /*Make it odd*/
if(!(roller->inf_page_cnt & 1)) roller->inf_page_cnt++; /*Make it odd*/
LV_LOG_INFO("Using %d pages to make the roller look infinite", roller->inf_page_cnt);
size_t opt_len = strlen(options) + 1; /*+1 to add '\n' after option lists*/