1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

chore(demo): fix -Wenum-int-mismatch (#4726)

This commit is contained in:
Niklas Fiekas 2023-10-30 13:16:41 +01:00 committed by GitHub
parent 829198c235
commit d197d73d62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -737,7 +737,7 @@ static scene_dsc_t scenes[] = {
* GLOBAL FUNCTIONS
**********************/
void lv_demo_render(uint32_t idx, lv_opa_t opa)
void lv_demo_render(lv_demo_render_scene_t id, lv_opa_t opa)
{
lv_obj_t * scr = lv_screen_active();
lv_obj_clean(scr);
@ -758,7 +758,7 @@ void lv_demo_render(uint32_t idx, lv_opa_t opa)
opa_saved = opa;
if(scenes[idx].create_cb) scenes[idx].create_cb(main_parent);
if(scenes[id].create_cb) scenes[id].create_cb(main_parent);
}