mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(dave2d): fix drawing border corners (#5366)
This commit is contained in:
parent
8cba0670ac
commit
cc7b10ddf2
@ -1038,7 +1038,7 @@ static bool is_out_anim(lv_screen_load_anim_t anim_type)
|
||||
static void disp_event_cb(lv_event_t * e)
|
||||
{
|
||||
lv_event_code_t code = lv_event_get_code(e);
|
||||
lv_display_t * disp = lv_event_get_current_target(e);
|
||||
lv_display_t * disp = lv_event_get_target(e);
|
||||
switch(code) {
|
||||
case LV_EVENT_REFR_REQUEST:
|
||||
if(disp->refr_timer) lv_timer_resume(disp->refr_timer);
|
||||
|
@ -279,6 +279,10 @@ static void dave2d_draw_border_complex(lv_draw_dave2d_unit_t * u, const lv_area_
|
||||
blend_w = lv_area_get_width(&blend_area);
|
||||
|
||||
if(blend_w > 0) {
|
||||
d2_s32 aa;
|
||||
aa = d2_getantialiasing(u->d2_handle);
|
||||
d2_setantialiasing(u->d2_handle, 0); //Don't blend with the background according to coverage value
|
||||
|
||||
if(left_side || top_side) {
|
||||
lv_area_t arc_area;
|
||||
lv_area_t clip_arc;
|
||||
@ -405,6 +409,7 @@ static void dave2d_draw_border_complex(lv_draw_dave2d_unit_t * u, const lv_area_
|
||||
}
|
||||
}
|
||||
}
|
||||
d2_setantialiasing(u->d2_handle, aa); //restore original setting
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -88,9 +88,10 @@ static void lv_draw_dave2d_draw_letter_cb(lv_draw_unit_t * u, lv_draw_glyph_dsc_
|
||||
// blend_dsc.mask_res = LV_DRAW_SW_MASK_RES_CHANGED;
|
||||
//lv_draw_sw_blend(u, &blend_dsc);
|
||||
|
||||
lv_draw_buf_t * draw_buf = glyph_draw_dsc->glyph_data;
|
||||
|
||||
#if defined(RENESAS_CORTEX_M85)
|
||||
#if (BSP_CFG_DCACHE_ENABLED)
|
||||
lv_draw_buf_t * draw_buf = glyph_draw_dsc->glyph_data;
|
||||
d1_cacheblockflush(unit->d2_handle, 0, draw_buf->data, draw_buf->data_size);
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user