mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-10 04:37:55 +08:00
fix(vg_lite): check for better draw unit (#8040)
Signed-off-by: yushuailong1 <yushuailong1@xiaomi.com>
This commit is contained in:
@@ -277,9 +277,12 @@ static int32_t draw_evaluate(lv_draw_unit_t * draw_unit, lv_draw_task_t * task)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* The draw unit is able to draw this task. */
|
||||
task->preference_score = 80;
|
||||
task->preferred_draw_unit_id = VG_LITE_DRAW_UNIT_ID;
|
||||
if(task->preference_score > 80) {
|
||||
/* The draw unit is able to draw this task. */
|
||||
task->preference_score = 80;
|
||||
task->preferred_draw_unit_id = VG_LITE_DRAW_UNIT_ID;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user