fix(tile) set minimum tiles to 1 if there is no SW render unit (#7130)

Signed-off-by: Cristian Stoica <cristianmarian.stoica@nxp.com>
This commit is contained in:
cristian-stoica 2024-10-24 11:39:06 +03:00 committed by GitHub
parent 040d293229
commit de464daef5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,7 +78,7 @@ lv_display_t * lv_display_create(int32_t hor_res, int32_t ver_res)
disp->color_format = LV_COLOR_FORMAT_NATIVE;
#if defined(LV_DRAW_SW_DRAW_UNIT_CNT)
#if defined(LV_DRAW_SW_DRAW_UNIT_CNT) && (LV_DRAW_SW_DRAW_UNIT_CNT != 0)
disp->tile_cnt = LV_DRAW_SW_DRAW_UNIT_CNT;
#else
disp->tile_cnt = 1;