Lines Matching refs:disp

62 static uint32_t get_max_row(lv_disp_t * disp, lv_coord_t area_w, lv_coord_t area_h);
63 static void draw_buf_flush(lv_disp_t * disp);
113 void lv_refr_now(lv_disp_t * disp) in lv_refr_now() argument
117 if(disp) { in lv_refr_now()
118 if(disp->refr_timer) _lv_disp_refr_timer(disp->refr_timer); in lv_refr_now()
205 void _lv_inv_area(lv_disp_t * disp, const lv_area_t * area_p) in _lv_inv_area() argument
207 if(!disp) disp = lv_disp_get_default(); in _lv_inv_area()
208 if(!disp) return; in _lv_inv_area()
209 if(!lv_disp_is_invalidation_enabled(disp)) return; in _lv_inv_area()
211 if(disp->rendering_in_progress) { in _lv_inv_area()
218 disp->inv_p = 0; in _lv_inv_area()
225 scr_area.x2 = lv_disp_get_hor_res(disp) - 1; in _lv_inv_area()
226 scr_area.y2 = lv_disp_get_ver_res(disp) - 1; in _lv_inv_area()
235 if(disp->driver->full_refresh) { in _lv_inv_area()
236 disp->inv_areas[0] = scr_area; in _lv_inv_area()
237 disp->inv_p = 1; in _lv_inv_area()
238 if(disp->refr_timer) lv_timer_resume(disp->refr_timer); in _lv_inv_area()
242 if(disp->driver->rounder_cb) disp->driver->rounder_cb(disp->driver, &com_area); in _lv_inv_area()
246 for(i = 0; i < disp->inv_p; i++) { in _lv_inv_area()
247 if(_lv_area_is_in(&com_area, &disp->inv_areas[i], 0) != false) return; in _lv_inv_area()
251 if(disp->inv_p < LV_INV_BUF_SIZE) { in _lv_inv_area()
252 lv_area_copy(&disp->inv_areas[disp->inv_p], &com_area); in _lv_inv_area()
255 disp->inv_p = 0; in _lv_inv_area()
256 lv_area_copy(&disp->inv_areas[disp->inv_p], &scr_area); in _lv_inv_area()
258 disp->inv_p++; in _lv_inv_area()
259 if(disp->refr_timer) lv_timer_resume(disp->refr_timer); in _lv_inv_area()
277 void _lv_refr_set_disp_refreshing(lv_disp_t * disp) in _lv_refr_set_disp_refreshing() argument
279 disp_refr = disp; in _lv_refr_set_disp_refreshing()
1049 static uint32_t get_max_row(lv_disp_t * disp, lv_coord_t area_w, lv_coord_t area_h) in get_max_row() argument
1051 int32_t max_row = (uint32_t)disp->driver->draw_buf->size / area_w; in get_max_row()
1267 static void draw_buf_flush(lv_disp_t * disp) in draw_buf_flush() argument
1272 lv_draw_ctx_t * draw_ctx = disp->driver->draw_ctx; in draw_buf_flush()
1291 if(disp->driver->flush_cb) { in draw_buf_flush()
1293 if(disp->driver->rotated != LV_DISP_ROT_NONE && disp->driver->sw_rotate) { in draw_buf_flush()
1297 call_flush_cb(disp->driver, draw_ctx->buf_area, draw_ctx->buf); in draw_buf_flush()
1302 if(draw_buf->buf1 && draw_buf->buf2 && (!disp->driver->direct_mode || flushing_last)) { in draw_buf_flush()