From b38c466e8d4a59eee02c7b9a2338e468632fa6f7 Mon Sep 17 00:00:00 2001 From: Kevin Schlosser Date: Mon, 10 Jul 2023 12:12:29 -0600 Subject: [PATCH] chore: remove repetitive code from lv_draw_sw.c (#4356) --- src/draw/sw/lv_draw_sw.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/draw/sw/lv_draw_sw.c b/src/draw/sw/lv_draw_sw.c index 2f3a31d53..987ef86a0 100644 --- a/src/draw/sw/lv_draw_sw.c +++ b/src/draw/sw/lv_draw_sw.c @@ -132,20 +132,15 @@ static int32_t lv_draw_sw_dispatch(lv_draw_unit_t * draw_unit, lv_layer_t * laye } } -#if LV_USE_OS t->state = LV_DRAW_TASK_STATE_IN_PROGRESS; draw_sw_unit->base_unit.target_layer = layer; draw_sw_unit->base_unit.clip_area = &t->clip_area; draw_sw_unit->task_act = t; +#if LV_USE_OS /*Let the render thread work*/ lv_thread_sync_signal(&draw_sw_unit->sync); #else - t->state = LV_DRAW_TASK_STATE_IN_PROGRESS; - draw_sw_unit->base_unit.target_layer = layer; - draw_sw_unit->base_unit.clip_area = &t->clip_area; - draw_sw_unit->task_act = t; - execute_drawing(draw_sw_unit); draw_sw_unit->task_act->state = LV_DRAW_TASK_STATE_READY;