Explorar o código

rtgui_demo: port to new API

Grissiom %!s(int64=12) %!d(string=hai) anos
pai
achega
634c3a3518
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      bsp/simulator/rtgui_demo/snake/snake_gui.c

+ 2 - 2
bsp/simulator/rtgui_demo/snake/snake_gui.c

@@ -365,7 +365,7 @@ void snake_main(void)
     struct rtgui_win *win;
     struct rtgui_win *win;
     rtgui_rect_t rect;
     rtgui_rect_t rect;
 
 
-    application = rtgui_app_create(rt_thread_self(), "sanke_app");
+    application = rtgui_app_create("sanke_app");
     if (application != RT_NULL)
     if (application != RT_NULL)
     {
     {
         rtgui_get_screen_rect(&rect);
         rtgui_get_screen_rect(&rect);
@@ -397,4 +397,4 @@ void snake_main(void)
 }
 }
 
 
 #include <finsh.h>
 #include <finsh.h>
-FINSH_FUNCTION_EXPORT(snake_main, snake run)
+FINSH_FUNCTION_EXPORT(snake_main, snake run)