Searched refs:frac (Results 1 – 9 of 9) sorted by relevance
295 lv_coord_t frac) in lv_gradient_calculate() argument300 int32_t min = (dsc->stops[0].frac * range) >> 8; in lv_gradient_calculate()301 if(frac <= min) { in lv_gradient_calculate()306 int32_t max = (dsc->stops[dsc->stops_count - 1].frac * range) >> 8; in lv_gradient_calculate()307 if(frac >= max) { in lv_gradient_calculate()315 int32_t cur = (dsc->stops[i].frac * range) >> 8; in lv_gradient_calculate()316 if(frac <= cur) { in lv_gradient_calculate()319 min = (dsc->stops[i - 1].frac * range) >> 8; in lv_gradient_calculate()320 max = (dsc->stops[i].frac * range) >> 8; in lv_gradient_calculate()329 frac -= min; in lv_gradient_calculate()[all …]
71 lv_coord_t frac);
22 grad.stops[0].frac = 128; in lv_example_style_2()23 grad.stops[1].frac = 192; in lv_example_style_2()
357 unsigned long frac = (unsigned long)tmp; in _ftoa() local358 diff = tmp - frac; in _ftoa()361 ++frac; in _ftoa()363 if(frac >= pow10[prec]) { in _ftoa()364 frac = 0; in _ftoa()370 else if((frac == 0U) || (frac & 1U)) { in _ftoa()372 ++frac; in _ftoa()388 buf[len++] = (char)(48U + (frac % 10U)); in _ftoa()389 if(!(frac /= 10U)) { in _ftoa()
151 uint8_t frac; /**< The stop position in 1/255 unit */ member
43 dsc->bg_grad.stops[1].frac = 0xFF; in lv_draw_rect_dsc_init()
71 draw_dsc->bg_grad.stops[0].frac = lv_obj_get_style_bg_main_stop(obj, part); in lv_obj_init_draw_rect_dsc()72 draw_dsc->bg_grad.stops[1].frac = lv_obj_get_style_bg_grad_stop(obj, part); in lv_obj_init_draw_rect_dsc()
961 key.stops[i].frac = grad->stops[i].frac; in rect_grad_frag_key_create()978 key.stops[i].frac = grad->stops[i].frac; in rect_grad_strip_key_create()
133 stops[i] = dsc->bg_grad.stops[i].frac; in lv_gpu_nxp_vglite_draw_bg()