diff --git a/lv_objx/lv_ddlist.h b/lv_objx/lv_ddlist.h index ddb436898..73d42af29 100644 --- a/lv_objx/lv_ddlist.h +++ b/lv_objx/lv_ddlist.h @@ -54,7 +54,9 @@ typedef struct uint16_t sel_opt_id_ori; /*Store the original index on focus*/ uint16_t anim_time; /*Open/Close animation time [ms]*/ uint8_t opened :1; /*1: The list is opened (handled by the library)*/ +#if LV_DDLIST_USE_STYLE_INDC != 0 uint8_t roller_ddlist :1; /*0: The list is roller, otherwise ddlist*/ +#endif lv_coord_t fix_height; /*Height of the ddlist when opened. (0: auto-size)*/ } lv_ddlist_ext_t;