mirror of
https://gitee.com/Vancouver2017/luban-lite.git
synced 2025-12-17 17:48:55 +00:00
lvgl ui support AiUIBuilder
This commit is contained in:
@@ -120,4 +120,10 @@
|
||||
#define LV_DRAW_BUF_ALIGN CACHE_LINE_SIZE
|
||||
|
||||
#define LV_USE_MONKEY 1
|
||||
|
||||
// should at the end of lv_conf.h
|
||||
#if defined(LV_USE_CONF_CUSTOM)
|
||||
#include "lv_conf_custom.h"
|
||||
#endif
|
||||
|
||||
#endif // LV_CONF_H
|
||||
|
||||
@@ -197,6 +197,10 @@ static int32_t ge2d_evaluate(lv_draw_unit_t *u, lv_draw_task_t *t)
|
||||
case LV_DRAW_TASK_TYPE_LAYER: {
|
||||
const lv_draw_image_dsc_t *draw_dsc = (lv_draw_image_dsc_t *)t->draw_dsc;
|
||||
lv_layer_t *layer= (lv_layer_t *)draw_dsc->src;
|
||||
lv_draw_buf_t *dest_buf = draw_dsc->base.layer->draw_buf;
|
||||
|
||||
if (!dest_buf)
|
||||
return 0;
|
||||
|
||||
if (!ge2d_src_fmt_supported(layer->color_format))
|
||||
return 0;
|
||||
@@ -213,6 +217,10 @@ static int32_t ge2d_evaluate(lv_draw_unit_t *u, lv_draw_task_t *t)
|
||||
|
||||
case LV_DRAW_TASK_TYPE_IMAGE: {
|
||||
lv_draw_image_dsc_t *draw_dsc = (lv_draw_image_dsc_t *)t->draw_dsc;
|
||||
lv_draw_buf_t *dest_buf = draw_dsc->base.layer->draw_buf;
|
||||
|
||||
if (!dest_buf)
|
||||
return 0;
|
||||
|
||||
if (!ge2d_src_fmt_supported(draw_dsc->header.cf))
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user