Lines Matching refs:grad
167 lv_grad_t * grad = lv_gradient_get(&dsc->bg_grad, coords_bg_w, coords_bg_h); in draw_bg() local
168 if(grad && grad_dir == LV_GRAD_DIR_HOR) { in draw_bg()
169 blend_dsc.src_buf = grad->map + clipped_coords.x1 - bg_coords.x1; in draw_bg()
178 blend_dsc.src_buf = grad->map; in draw_bg()
181 if(grad && dither_mode == LV_DITHER_NONE) { in draw_bg()
182 grad->filled = 0; /*Should we force refilling it each draw call ?*/ in draw_bg()
229 if(dither_func) dither_func(grad, blend_area.x1, h - bg_coords.y1, grad_size); in draw_bg()
231 if(grad_dir == LV_GRAD_DIR_VER) blend_dsc.color = grad->map[h - bg_coords.y1]; in draw_bg()
254 if(dither_func) dither_func(grad, blend_area.x1, top_y - bg_coords.y1, grad_size); in draw_bg()
256 if(grad_dir == LV_GRAD_DIR_VER) blend_dsc.color = grad->map[top_y - bg_coords.y1]; in draw_bg()
265 if(dither_func) dither_func(grad, blend_area.x1, bottom_y - bg_coords.y1, grad_size); in draw_bg()
267 if(grad_dir == LV_GRAD_DIR_VER) blend_dsc.color = grad->map[bottom_y - bg_coords.y1]; in draw_bg()
304 if(dither_func) dither_func(grad, blend_area.x1, h - bg_coords.y1, grad_size); in draw_bg()
306 if(grad_dir == LV_GRAD_DIR_VER) blend_dsc.color = grad->map[h - bg_coords.y1]; in draw_bg()
317 if(grad) { in draw_bg()
318 lv_gradient_cleanup(grad); in draw_bg()