chore(draw_sw): add warning if the required color format is not enabled during image transformations (#7315)

Co-authored-by: Liam <30486941+liamHowatt@users.noreply.github.com>
This commit is contained in:
Gabor Kiss-Vamosi
2024-11-28 12:24:58 +01:00
committed by GitHub
parent af3c968f8a
commit 588cbe56f0

View File

@@ -270,7 +270,11 @@ void lv_draw_sw_transform(lv_draw_unit_t * draw_unit, const lv_area_t * dest_are
break;
#endif /*LV_DRAW_SW_SUPPORT_L8 && (LV_DRAW_SW_SUPPORT_ARGB8888 || LV_DRAW_SW_SUPPORT_AL88)*/
default:
break;
LV_LOG_WARN("Color format 0x%02X is not enabled. "
"See lv_color.h to find the name of the color formats and "
"enable the related LV_DRAW_SW_SUPPORT_* in lv_conf.h.",
src_cf);
return;
}
dest_buf = (uint8_t *)dest_buf + dest_stride;