diff --git a/bsp/simulator/rtgui_demo/snake/snake_gui.c b/bsp/simulator/rtgui_demo/snake/snake_gui.c index 836355236b..0df1ba7a87 100644 --- a/bsp/simulator/rtgui_demo/snake/snake_gui.c +++ b/bsp/simulator/rtgui_demo/snake/snake_gui.c @@ -365,7 +365,7 @@ void snake_main(void) struct rtgui_win *win; rtgui_rect_t rect; - application = rtgui_app_create(rt_thread_self(), "sanke_app"); + application = rtgui_app_create("sanke_app"); if (application != RT_NULL) { rtgui_get_screen_rect(&rect); @@ -397,4 +397,4 @@ void snake_main(void) } #include -FINSH_FUNCTION_EXPORT(snake_main, snake run) \ No newline at end of file +FINSH_FUNCTION_EXPORT(snake_main, snake run)