mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
chore: remove repetitive code from lv_draw_sw.c (#4356)
This commit is contained in:
parent
dd967ffccc
commit
b38c466e8d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user