chore(example): fix build break caused by undefined LV_USE_DRAW_SW_COMPLEX_GRADIENTS (#6286)

This commit is contained in:
lhdjply
2024-05-28 19:11:33 +08:00
committed by GitHub
parent 18dfa7b7ed
commit 02524ff242
3 changed files with 33 additions and 0 deletions

View File

@@ -37,6 +37,17 @@ void lv_example_style_17(void)
lv_obj_center(obj);
}
#else
void lv_example_style_17(void)
{
lv_obj_t * label = lv_label_create(lv_screen_active());
lv_obj_set_width(label, LV_PCT(80));
lv_label_set_text(label, "LV_USE_DRAW_SW_COMPLEX_GRADIENTS is not enabled");
lv_label_set_long_mode(label, LV_LABEL_LONG_SCROLL_CIRCULAR);
lv_obj_center(label);
}
#endif /*LV_USE_DRAW_SW_COMPLEX_GRADIENTS*/
#endif /*LV_BUILD_EXAMPLES*/