Browse Source

simulator: fix exit issue when close RTGUI window

prife 11 years ago
parent
commit
a6fa98f1ee
1 changed files with 3 additions and 1 deletions
  1. 3 1
      bsp/simulator/drivers/sdl_fb.c

+ 3 - 1
bsp/simulator/drivers/sdl_fb.c

@@ -11,6 +11,8 @@
 #define SDL_SCREEN_WIDTH    800
 #define SDL_SCREEN_HEIGHT   480
 
+extern void rt_hw_exit(void);
+
 struct sdlfb_device
 {
     struct rt_device parent;
@@ -307,7 +309,7 @@ static void *sdl_loop(void *lpParam)
         if (quit)
             break;
     }
-    //exit(0);
+    rt_hw_exit();
     return 0;
 }