add comments in sw render too

This commit is contained in:
Gabor Kiss-Vamosi
2024-07-10 16:58:05 +02:00
parent b5cc37641f
commit 4ac8ef198c

View File

@@ -372,13 +372,13 @@ static int32_t dispatch(lv_draw_unit_t * draw_unit, lv_layer_t * layer)
t = lv_draw_get_next_available_task(layer, NULL, DRAW_UNIT_ID_SW);
if(t == NULL) {
LV_PROFILER_END;
return -1;
return -1; /*Couldn't start rendering*/
}
void * buf = lv_draw_layer_alloc_buf(layer);
if(buf == NULL) {
LV_PROFILER_END;
return -1;
return -1; /*Couldn't start rendering*/
}
t->state = LV_DRAW_TASK_STATE_IN_PROGRESS;