mirror of
https://github.com/lvgl/lvgl.git
synced 2025-02-04 07:13:00 +08:00
fix(sdl): make it work with canvas rendering too
SDL won't take non-display refresh ralted tasks.
This commit is contained in:
parent
780807029f
commit
5d9064c17e
@ -167,6 +167,10 @@ static int32_t evaluate(lv_draw_unit_t * draw_unit, lv_draw_task_t * task)
|
|||||||
{
|
{
|
||||||
LV_UNUSED(draw_unit);
|
LV_UNUSED(draw_unit);
|
||||||
|
|
||||||
|
/*If not refreshing the display probably it's a canvas rendering
|
||||||
|
*which his not support in SDL as it's not a texture.*/
|
||||||
|
if(lv_refr_get_disp_refreshing() == NULL) return 0;
|
||||||
|
|
||||||
if(((lv_draw_dsc_base_t *)task->draw_dsc)->user_data == NULL) {
|
if(((lv_draw_dsc_base_t *)task->draw_dsc)->user_data == NULL) {
|
||||||
task->preference_score = 0;
|
task->preference_score = 0;
|
||||||
task->preferred_draw_unit_id = DRAW_UNIT_ID_SDL;
|
task->preferred_draw_unit_id = DRAW_UNIT_ID_SDL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user