1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(refr): fix area size in partial mode

This commit is contained in:
Gabor Kiss-Vamosi 2023-08-03 19:53:37 +02:00
parent af8c55724d
commit e3c435860d

View File

@ -546,8 +546,8 @@ static void refr_area(const lv_area_t * area_p)
layer->draw_buf.buf = disp_refr->buf_act;
layer->draw_buf.width = lv_area_get_width(&sub_area);
layer->draw_buf.height = max_row;
layer->draw_buf_ofs.x = area_p->x1;
layer->draw_buf_ofs.y = area_p->y1;
layer->draw_buf_ofs.x = sub_area.x1;
layer->draw_buf_ofs.y = sub_area.y1;
layer->clip_area = sub_area;
if(sub_area.y2 > y2) sub_area.y2 = y2;
row_last = sub_area.y2;