reimplement style caching

This commit is contained in:
Gabor Kiss-Vamosi
2020-01-08 21:31:05 +01:00
parent 02f4dd764f
commit 1b94cf6851
13 changed files with 561 additions and 584 deletions

View File

@@ -234,10 +234,10 @@ static lv_res_t lv_slider_signal(lv_obj_t * slider, lv_signal_t sign, void * par
lv_res_t res;
if(sign == LV_SIGNAL_GET_STYLE) {
uint8_t ** type_p = param;
lv_style_dsc_t ** style_dsc_p = param;
*style_dsc_p = lv_slider_get_style(slider, **type_p);
return LV_RES_OK;
lv_get_style_info_t * info = param;
info->result = lv_slider_get_style(slider, info->part);
if(info->result != NULL) return LV_RES_OK;
else return ancestor_signal(slider, sign, param);
}
/* Include the ancient signal function */