Lines Matching full:if

62 #if LV_USE_LOG && LV_LOG_TRACE_DISP_REFR
87 if(disp) { in lv_refr_now()
88 if(disp->refr_timer) lv_display_refr_timer(disp->refr_timer); in lv_refr_now()
94 if(d->refr_timer) lv_display_refr_timer(d->refr_timer); in lv_refr_now()
112 if(!lv_area_intersect(&clip_coords_for_obj, &clip_area_ori, &obj_coords_ext)) { in lv_obj_redraw()
116 /*If the object is visible on the current clip area*/ in lv_obj_redraw()
122 #if LV_USE_REFR_DEBUG in lv_obj_redraw()
135 if(lv_obj_has_flag(obj, LV_OBJ_FLAG_OVERFLOW_VISIBLE)) { in lv_obj_redraw()
143 if(!lv_area_intersect(&clip_coords_for_children, &clip_area_ori, obj_coords)) { in lv_obj_redraw()
147 if(refr_children) { in lv_obj_redraw()
150 if(child_cnt == 0) { in lv_obj_redraw()
151 /*If the object was visible on the clip area call the post draw events too*/ in lv_obj_redraw()
153 /*If all the children are redrawn make 'post draw' draw*/ in lv_obj_redraw()
163 if(clip_corner) { in lv_obj_redraw()
165 if(radius == 0) clip_corner = false; in lv_obj_redraw()
168 if(clip_corner == false) { in lv_obj_redraw()
174 /*If the object was visible on the clip area call the post draw events too*/ in lv_obj_redraw()
176 /*If all the children are redrawn make 'post draw' draw*/ in lv_obj_redraw()
196 if(lv_area_intersect(&bottom, &bottom, &clip_area_ori)) { in lv_obj_redraw()
204 /*If all the children are redrawn send 'post draw' draw*/ in lv_obj_redraw()
217 if(lv_area_intersect(&top, &top, &clip_area_ori)) { in lv_obj_redraw()
225 /*If all the children are redrawn send 'post draw' draw*/ in lv_obj_redraw()
240 if(lv_area_intersect(&mid, &mid, &clip_area_ori)) { in lv_obj_redraw()
247 /*If all the children are redrawn make 'post draw' draw*/ in lv_obj_redraw()
264 if(!disp) disp = lv_display_get_default(); in lv_inv_area()
265 if(!disp) return; in lv_inv_area()
266 if(!lv_display_is_invalidation_enabled(disp)) return; in lv_inv_area()
281 /*Clear the invalidate buffer if the parameter is NULL*/ in lv_inv_area()
282 if(area_p == NULL) { in lv_inv_area()
297 if(suc == false) return; /*Out of the screen*/ in lv_inv_area()
299 if(disp->color_format == LV_COLOR_FORMAT_I1) { in lv_inv_area()
306 /*If there were at least 1 invalid area in full refresh mode, redraw the whole screen*/ in lv_inv_area()
307 if(disp->render_mode == LV_DISPLAY_RENDER_MODE_FULL) { in lv_inv_area()
315 if(res != LV_RESULT_OK) return; in lv_inv_area()
317 /*Save only if this area is not in one of the saved areas*/ in lv_inv_area()
320 if(lv_area_is_in(&com_area, &disp->inv_areas[i], 0) != false) return; in lv_inv_area()
325 if(disp->inv_p >= LV_INV_BUF_SIZE) { /*If no place for the area add the screen*/ in lv_inv_area()
358 if(tmr) { in lv_display_refr_timer()
362 * However if the performance monitor is enabled keep the timer running to count the FPS.*/ in lv_display_refr_timer()
363 #if !LV_USE_PERF_MONITOR in lv_display_refr_timer()
371 if(disp_refr == NULL) { in lv_display_refr_timer()
378 if(!(buf_act && buf_act->data && buf_act->data_size)) { in lv_display_refr_timer()
386 /*Refresh the screen's layout if required*/ in lv_display_refr_timer()
389 if(disp_refr->prev_scr) lv_obj_update_layout(disp_refr->prev_scr); in lv_display_refr_timer()
396 /*Do nothing if there is no active screen*/ in lv_display_refr_timer()
397 if(disp_refr->act_scr == NULL) { in lv_display_refr_timer()
407 if(disp_refr->inv_p == 0) goto refr_finish; in lv_display_refr_timer()
410if(lv_display_is_double_buffered(disp_refr) && disp_refr->render_mode == LV_DISPLAY_RENDER_MODE_DI… in lv_display_refr_timer()
413 if(disp_refr->inv_area_joined[i]) in lv_display_refr_timer()
427 #if LV_DRAW_SW_COMPLEX == 1 in lv_display_refr_timer()
451 if(disp_refr->inv_area_joined[join_in] != 0) continue; in lv_refr_join_area()
456 if(disp_refr->inv_area_joined[join_from] != 0 || join_in == join_from) { in lv_refr_join_area()
460 /*Check if the areas are on each other*/ in lv_refr_join_area()
461if(lv_area_is_on(&disp_refr->inv_areas[join_in], &disp_refr->inv_areas[join_from]) == false) { in lv_refr_join_area()
467 /*Join two area only if the joined area size is smaller*/ in lv_refr_join_area()
468 if(lv_area_get_size(&joined_area) < (lv_area_get_size(&disp_refr->inv_areas[join_in]) + in lv_refr_join_area()
485 /*Do not sync if not direct or double buffered*/ in refr_sync_areas()
486 if(disp_refr->render_mode != LV_DISPLAY_RENDER_MODE_DIRECT) return; in refr_sync_areas()
488 /*Do not sync if not double buffered*/ in refr_sync_areas()
489 if(!lv_display_is_double_buffered(disp_refr)) return; in refr_sync_areas()
491 /*Do not sync if no sync areas*/ in refr_sync_areas()
492 if(lv_ll_is_empty(&disp_refr->sync_areas)) return; in refr_sync_areas()
507 /*Iterate through invalidated areas to see if sync area should be copied*/ in refr_sync_areas()
515 if(disp_refr->inv_area_joined[i]) continue; in refr_sync_areas()
527 if(res_c != -1) { in refr_sync_areas()
543 /*Copy sync areas (if any remaining)*/ in refr_sync_areas()
563 if(disp_refr->inv_p == 0) return; in refr_invalid_areas()
570 if(disp_refr->inv_area_joined[i] == 0) { in refr_invalid_areas()
585 if(disp_refr->inv_area_joined[i]) continue; in refr_invalid_areas()
587 if(i == last_i) disp_refr->last_area = 1; in refr_invalid_areas()
591 if(disp_refr->render_mode == LV_DISPLAY_RENDER_MODE_PARTIAL) { in refr_invalid_areas()
607 if(sub_area.y2 > inv_a.y2) sub_area.y2 = inv_a.y2; in refr_invalid_areas()
609 if(inv_a.y2 == row_last) disp_refr->last_part = 1; in refr_invalid_areas()
614 /*If the last y coordinates are not handled yet ...*/ in refr_invalid_areas()
615 if(inv_a.y2 != row_last) { in refr_invalid_areas()
624 else if(disp_refr->render_mode == LV_DISPLAY_RENDER_MODE_FULL || in refr_invalid_areas()
638 * Reshape the draw buffer if required
654 * Refresh an area if there is Virtual Display Buffer
665 if(disp_refr->render_mode == LV_DISPLAY_RENDER_MODE_FULL) { in refr_area()
671 else if(disp_refr->render_mode == LV_DISPLAY_RENDER_MODE_PARTIAL) { in refr_area()
676 else if(disp_refr->render_mode == LV_DISPLAY_RENDER_MODE_DIRECT) { in refr_area()
688 if(LV_COLOR_FORMAT_IS_INDEXED(layer->color_format) == false) { in refr_area()
702 if(tile_cnt == 1) { in refr_area()
711 if(tile_layers == NULL) { in refr_area()
722 if(i == tile_cnt - 1) { in refr_area()
744 if(layer_i->next == tile_layer) { in refr_area()
751 if(disp_refr->layer_deinit) disp_refr->layer_deinit(disp_refr, tile_layer); in refr_area()
768 if(!lv_display_is_double_buffered(disp_refr)) { in refr_configured_layer()
771 /*If the screen is transparent initialize it when the flushing is ready*/ in refr_configured_layer()
772 if(lv_color_format_has_alpha(disp_refr->color_format)) { in refr_configured_layer()
783 if(disp_refr->prev_scr) { in refr_configured_layer()
787 /*Draw a bottom layer background if there is no top object*/ in refr_configured_layer()
788 if(top_act_scr == NULL && top_prev_scr == NULL) { in refr_configured_layer()
792 if(disp_refr->draw_prev_over_act) { in refr_configured_layer()
793 if(top_act_scr == NULL) top_act_scr = disp_refr->act_scr; in refr_configured_layer()
796 /*Refresh the previous screen if any*/ in refr_configured_layer()
797 if(disp_refr->prev_scr) { in refr_configured_layer()
798 if(top_prev_scr == NULL) top_prev_scr = disp_refr->prev_scr; in refr_configured_layer()
803 /*Refresh the previous screen if any*/ in refr_configured_layer()
804 if(disp_refr->prev_scr) { in refr_configured_layer()
805 if(top_prev_scr == NULL) top_prev_scr = disp_refr->prev_scr; in refr_configured_layer()
809 if(top_act_scr == NULL) top_act_scr = disp_refr->act_scr; in refr_configured_layer()
830 if(lv_area_is_in(area_p, &obj->coords, 0) == false) return NULL; in lv_refr_get_top_obj()
831 if(lv_obj_has_flag(obj, LV_OBJ_FLAG_HIDDEN)) return NULL; in lv_refr_get_top_obj()
832 if(lv_obj_get_layer_type(obj) != LV_LAYER_TYPE_NONE) return NULL; in lv_refr_get_top_obj()
833 if(lv_obj_get_style_opa(obj, LV_PART_MAIN) < LV_OPA_MAX) return NULL; in lv_refr_get_top_obj()
835 /*If this object is fully cover the draw area then check the children too*/ in lv_refr_get_top_obj()
840 if(info.res == LV_COVER_RES_MASKED) return NULL; in lv_refr_get_top_obj()
848 /*If a children is ok then break*/ in lv_refr_get_top_obj()
849 if(found_p != NULL) { in lv_refr_get_top_obj()
854 /*If no better children use this object*/ in lv_refr_get_top_obj()
855 if(found_p == NULL && info.res == LV_COVER_RES_COVER) { in lv_refr_get_top_obj()
870 *but in special cases (e.g. if the screen has alpha) it won't. in refr_obj_and_children()
872 if(top_obj == NULL) top_obj = lv_display_get_screen_active(disp_refr); in refr_obj_and_children()
873 if(top_obj == NULL) return; /*Shouldn't happen*/ in refr_obj_and_children()
892 if(!go) { in refr_obj_and_children()
893 if(child == border_p) go = true; in refr_obj_and_children()
922 if(layer_type == LV_LAYER_TYPE_TRANSFORM) { in layer_get_area()
928 if(!lv_area_intersect(&clip_coords_for_obj, &layer->_clip_area, &tranf_coords)) { in layer_get_area()
937if(!lv_area_intersect(&inverse_clip_coords_for_obj, &inverse_clip_coords_for_obj, obj_draw_size_ou… in layer_get_area()
944 else if(layer_type == LV_LAYER_TYPE_SIMPLE) { in layer_get_area()
946 if(!lv_area_intersect(&clip_coords_for_obj, &layer->_clip_area, obj_draw_size_out)) { in layer_get_area()
961 /*Test for alpha by assuming there is no alpha. If it fails, fall back to rendering with alpha*/ in alpha_test_area_on_obj()
962 /*If the layer area is not fully on the object, it can't fully cover it*/ in alpha_test_area_on_obj()
963 if(!lv_area_is_on(area, &obj->coords)) return true; in alpha_test_area_on_obj()
969 if(info.res == LV_COVER_RES_COVER) return false; in alpha_test_area_on_obj()
973 #if LV_DRAW_TRANSFORM_USE_MATRIX
980 if(obj_matrix) { in obj_get_matrix()
1001 if(scale_x <= 0 || scale_y <= 0) { in obj_get_matrix()
1002 /* NOT draw if scale is negative or zero */ in obj_get_matrix()
1008 if(rotation != 0) { in obj_get_matrix()
1012 if(scale_x != LV_SCALE_NONE || scale_y != LV_SCALE_NONE) { in obj_get_matrix()
1020 if(skew_x != 0 || skew_y != 0) { in obj_get_matrix()
1032 if(!obj_get_matrix(obj, &obj_matrix)) { in refr_obj_matrix()
1033 /* NOT draw if obj matrix is not available */ in refr_obj_matrix()
1039 if(!lv_matrix_inverse(&matrix_inv, &obj_matrix)) { in refr_obj_matrix()
1040 /* NOT draw if matrix is not invertible */ in refr_obj_matrix()
1057 if(!lv_matrix_is_identity_or_translation(&obj_matrix)) { in refr_obj_matrix()
1075 if(lv_obj_get_style_transform_rotation(obj, 0) == 0) { in refr_check_obj_clip_overflow()
1088 if(!lv_area_intersect(&clip_coords_for_obj, &layer->_clip_area, &obj_coords)) { in refr_check_obj_clip_overflow()
1100 if(lv_obj_has_flag(obj, LV_OBJ_FLAG_HIDDEN)) return; in refr_obj()
1102 …/*If `opa_layered != LV_OPA_COVER` draw the widget on a new layer and blend that layer with the gi… in refr_obj()
1104 if(opa_layered < LV_OPA_MIN) return; in refr_obj()
1110 if(opa_main < LV_OPA_MAX) { in refr_obj()
1115 if(layer_type == LV_LAYER_TYPE_NONE) { in refr_obj()
1118 #if LV_DRAW_TRANSFORM_USE_MATRIX in refr_obj()
1119 /*If the layer opa is full then use the matrix transform*/ in refr_obj()
1120 else if(opa_layered >= LV_OPA_MAX && !refr_check_obj_clip_overflow(layer, obj)) { in refr_obj()
1128 if(res != LV_RESULT_OK) return; in refr_obj()
1133 if(layer_type == LV_LAYER_TYPE_SIMPLE) { in refr_obj()
1148 * If it really doesn't need alpha use it. Else switch to the ARGB size*/ in refr_obj()
1150 if(layer_area_act.y2 > layer_area_full.y2) layer_area_act.y2 = layer_area_full.y2; in refr_obj()
1155 if(area_need_alpha) { in refr_obj()
1157 if(layer_area_act.y2 > layer_area_full.y2) layer_area_act.y2 = layer_area_full.y2; in refr_obj()
1169 if(LV_COORD_IS_PCT(pivot.x)) { in refr_obj()
1172 if(LV_COORD_IS_PCT(pivot.y)) { in refr_obj()
1211 if(stride == 0) { in get_max_row()
1218 if(max_row > area_h) max_row = area_h; in get_max_row()
1220 /*Round down the lines of draw_buf if rounding is added*/ in get_max_row()
1231 /*If this height fits into `max_row` then fine*/ in get_max_row()
1232 if(lv_area_get_height(&tmp) <= max_row) break; in get_max_row()
1238 if(h_tmp <= 0) { in get_max_row()
1265 * If we need to wait here it means that the content of one buffer is being sent to display in draw_buf_flush()
1267 if(lv_display_is_double_buffered(disp)) { in draw_buf_flush()
1273 if(disp->last_area && disp->last_part) disp->flushing_last = 1; in draw_buf_flush()
1278 if(disp->flush_cb) { in draw_buf_flush()
1281 /*If there are 2 buffers swap them. With direct mode swap only on the last area*/ in draw_buf_flush()
1282if(lv_display_is_double_buffered(disp) && (disp->render_mode != LV_DISPLAY_RENDER_MODE_DIRECT || f… in draw_buf_flush()
1283 if(disp->buf_act == disp->buf_1) { in draw_buf_flush()
1308 #if defined(LV_COLOR_16_SWAP) && LV_COLOR_16_SWAP in call_flush_cb()
1325 if(disp->flush_wait_cb) { in wait_for_flushing()
1326 if(disp->flushing) { in wait_for_flushing()