fix(color): flickering Lua widgets when full screen is refreshed (#5364)

This commit is contained in:
philmoz
2024-08-05 09:27:25 +10:00
committed by GitHub
parent af1a29de29
commit 4b978c347d
4 changed files with 66 additions and 2 deletions
+4
View File
@@ -210,6 +210,10 @@ void LuaWidget::redraw_cb(lv_event_t* e)
buf.setDrawCtx(draw_ctx);
buf.setOffset(draw_ctx->clip_area->x1 - draw_ctx->buf_area->x1, draw_ctx->clip_area->y1 - draw_ctx->buf_area->y1);
buf.setClippingRect(draw_ctx->clip_area->x1 - draw_ctx->buf_area->x1, draw_ctx->clip_area->x2 - draw_ctx->buf_area->x1 + 1,
draw_ctx->clip_area->y1 - draw_ctx->buf_area->y1, draw_ctx->clip_area->y2 - draw_ctx->buf_area->y1 + 1);
widget->refresh(&buf);
}
}