From a6fa98f1ee806cac963352b1ddb88a560e1d6f9c Mon Sep 17 00:00:00 2001 From: prife Date: Sun, 9 Feb 2014 11:24:36 +0800 Subject: [PATCH] simulator: fix exit issue when close RTGUI window --- bsp/simulator/drivers/sdl_fb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bsp/simulator/drivers/sdl_fb.c b/bsp/simulator/drivers/sdl_fb.c index 78bca6f07..84076b757 100755 --- a/bsp/simulator/drivers/sdl_fb.c +++ b/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; } -- GitLab