From 2c021b69dcc68ee4a6d443bc3c903de1b878dd93 Mon Sep 17 00:00:00 2001 From: VIFEX Date: Thu, 29 Aug 2024 20:48:22 +0800 Subject: [PATCH] Revert "perf(draw): skip empty draw tasks (#6720)" (#6758) Co-authored-by: pengyiqiang --- src/draw/lv_draw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/draw/lv_draw.c b/src/draw/lv_draw.c index 8de27efad..028747368 100644 --- a/src/draw/lv_draw.c +++ b/src/draw/lv_draw.c @@ -179,8 +179,7 @@ void lv_draw_dispatch(void) while(disp) { lv_layer_t * layer = disp->layer_head; while(layer) { - /* If there are no tasks in the layer, skip it */ - if(layer->draw_task_head && lv_draw_dispatch_layer(disp, layer)) + if(lv_draw_dispatch_layer(disp, layer)) task_dispatched = true; layer = layer->next; }