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:
parent
829198c235
commit
d197d73d62
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user