mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-27 20:57:01 +08:00
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:
@@ -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;
|
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;
|
disp->tile_cnt = LV_DRAW_SW_DRAW_UNIT_CNT;
|
||||||
#else
|
#else
|
||||||
disp->tile_cnt = 1;
|
disp->tile_cnt = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user